game_physics_2d
Execute area overlaps, point/shape queries, and raycasts to identify 2D collisions and intersections in Godot physics.
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} | |
| action | Yes | Action: overlap, point_query, shape_query, ray | |
| nodePath | No | Area2D/node path (for overlap) | |
| collisionMask | No | Collision mask bitmask |