game_physics_2d
Perform 2D physics queries: raycasts, point queries, shape overlaps, and area overlaps in the Godot engine.
Instructions
Area2D queries and 2D point/shape intersections
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End point {x,y} (for ray) | |
| from | No | Origin point {x,y} | |
| size | No | Rectangle size {x,y} (shape_query rectangle) | |
| action | Yes | Action: overlap, point_query, shape_query, ray | |
| radius | No | Circle radius (shape_query circle) | |
| nodePath | No | Area2D/node path (for overlap) | |
| position | No | Query position {x,y} (point_query/shape_query) | |
| shapeType | No | Shape: circle or rectangle (shape_query) | |
| maxResults | No | Max results. Default: 32 | |
| collisionMask | No | Collision mask bitmask |