Skip to content

PhysicsWorld.OverlapBodyFirst(PhysicsBodyComponent, Nullable) Method

Definition

Namespace: Brine2D.Physics

Returns the first overlapping hit whose shapes exactly overlap any shape on body, excluding body itself. Returns null if none or body is not live.

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

Parameters

body PhysicsBodyComponent

filter System.Nullable<PhysicsQueryFilter>

Returns

System.Nullable<OverlapHit>