Function Physics2DDirectSpaceState.intersectShape
Checks the intersections of a shape, given through a Physics2DShapeQueryParameters object, against the space.
Note: This method does not take into account the motion property of the object. The intersected shapes are returned in an array containing dictionaries with the following fields:
collider: The colliding object.
collider_id: The colliding object's ID.
metadata: The intersecting shape's metadata. This metadata is different from GodotObject, and is set with Physics2DServer.
rid: The intersecting object's RID.
shape: The shape index of the colliding shape.
The number of intersections can be limited with the max_results parameter, to reduce the processing time.
Array intersectShape
(
Physics2DShapeQueryParameters shape,
const(long) max_results = 32L
) nothrow @nogc;