Skip to content

PhysicsBodyComponent.ShouldCollideChanged Event

Definition

Namespace: Brine2D.ECS.Components

Raised by the physics system when the ShouldCollide delegate (or any sub-shape ShouldCollide delegate) transitions between null and non-null. The system uses this to install or remove the Box2D custom filter callback.

internal event Action<bool>? ShouldCollideChanged;

Event Type

System.Action<System.Boolean>