PhysicsWorld.OverlapBodyShapes Method
Definition
Namespace: Brine2D.Physics
| Overloads | |
|---|---|
| OverlapBodyShapes\(PhysicsBodyComponent, Span<OverlapHit>, bool, Nullable<PhysicsQueryFilter>\) | Returns all shape hits whose shapes exactly overlap any shape on body, excluding shapes belonging to body itself, written into results. Returns the number of results written. |
| OverlapBodyShapes\(PhysicsBodyComponent, Span<OverlapHit>, Nullable<PhysicsQueryFilter>\) | Returns all shape hits whose shapes exactly overlap any shape on body, excluding shapes belonging to body itself, written into results. Returns the number of results written. |
PhysicsWorld.OverlapBodyShapes\(PhysicsBodyComponent, Span\<OverlapHit\>, bool, Nullable\<PhysicsQueryFilter\>\) Method
Returns all shape hits whose shapes exactly overlap any shape on body, excluding shapes belonging to body itself, written into results. Returns the number of results written.
C#
public int OverlapBodyShapes(Brine2D.ECS.Components.PhysicsBodyComponent body, System.Span<Brine2D.Physics.OverlapHit> results, out bool wasTruncated, System.Nullable<Brine2D.Physics.PhysicsQueryFilter> filter=null);
Parameters
body PhysicsBodyComponent
results System.Span<OverlapHit>
wasTruncated System.Boolean
filter System.Nullable<PhysicsQueryFilter>
Returns
PhysicsWorld.OverlapBodyShapes\(PhysicsBodyComponent, Span\<OverlapHit\>, Nullable\<PhysicsQueryFilter\>\) Method
Returns all shape hits whose shapes exactly overlap any shape on body, excluding shapes belonging to body itself, written into results. Returns the number of results written.
C#
public int OverlapBodyShapes(Brine2D.ECS.Components.PhysicsBodyComponent body, System.Span<Brine2D.Physics.OverlapHit> results, System.Nullable<Brine2D.Physics.PhysicsQueryFilter> filter=null);
Parameters
body PhysicsBodyComponent
results System.Span<OverlapHit>
filter System.Nullable<PhysicsQueryFilter>