PhysicsDirectSpaceStateIntersectShape Method |
Checks the intersections of a shape, given through a PhysicsShapeQueryParameters object, against the space. 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.
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.
Namespace: Godot
public Array IntersectShape( PhysicsShapeQueryParameters shape, int maxResults = 32 )
[Missing <param name="shape"/> documentation for "M:Godot.PhysicsDirectSpaceState.IntersectShape(Godot.PhysicsShapeQueryParameters,System.Int32)"]
[Missing <param name="maxResults"/> documentation for "M:Godot.PhysicsDirectSpaceState.IntersectShape(Godot.PhysicsShapeQueryParameters,System.Int32)"]
[Missing <returns> documentation for "M:Godot.PhysicsDirectSpaceState.IntersectShape(Godot.PhysicsShapeQueryParameters,System.Int32)"]