Skip to content

PhysicsWorld.OverlapBodyAABBFirst(PhysicsBodyComponent, Nullable) Method

Definition

Namespace: Brine2D.Physics

Returns the first overlapping hit whose AABB intersects body's AABB, excluding body itself, or null if none.

public System.Nullable<Brine2D.Physics.OverlapHit> OverlapBodyAABBFirst(Brine2D.ECS.Components.PhysicsBodyComponent body, System.Nullable<Brine2D.Physics.PhysicsQueryFilter> filter=null);

Parameters

body PhysicsBodyComponent

filter System.Nullable<PhysicsQueryFilter>

Returns

System.Nullable<OverlapHit>

Remarks

This is a \<b>broad-phase AABB test only\</b> — shapes are not tested for exact overlap. Use OverlapBodyFirst(PhysicsBodyComponent, Nullable<PhysicsQueryFilter>) for shape-exact results.