PhysicsWorld.OverlapBodyAABBShapes Method
Definition¶
Namespace: Brine2D.Physics
| Overloads | |
|---|---|
| OverlapBodyAABBShapes(PhysicsBodyComponent, Span<OverlapHit>, bool, Nullable<PhysicsQueryFilter>) | Returns all shape hits (one per shape) whose AABB intersects body's AABB, excluding body itself, written into results. |
| OverlapBodyAABBShapes(PhysicsBodyComponent, Span<OverlapHit>, Nullable<PhysicsQueryFilter>) | Returns all shape hits (one per shape) whose AABB intersects body's AABB, excluding body itself, written into results. |
PhysicsWorld.OverlapBodyAABBShapes(PhysicsBodyComponent, Span\<OverlapHit>, bool, Nullable\<PhysicsQueryFilter>) Method¶
Returns all shape hits (one per shape) whose AABB intersects body's AABB, excluding body itself, written into results.
public int OverlapBodyAABBShapes(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
Set to true when the internal collection buffer was too small.
filter System.Nullable<PhysicsQueryFilter>
Returns¶
System.Int32
Number of results written.
Remarks¶
This is a \<b>broad-phase AABB test only\</b>.
PhysicsWorld.OverlapBodyAABBShapes(PhysicsBodyComponent, Span\<OverlapHit>, Nullable\<PhysicsQueryFilter>) Method¶
Returns all shape hits (one per shape) whose AABB intersects body's AABB, excluding body itself, written into results.
public int OverlapBodyAABBShapes(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>
Returns¶
System.Int32
Number of results written.
Remarks¶
This is a \<b>broad-phase AABB test only\</b>.