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](../SubShape/ShouldCollide.md 'Brine2D\.ECS\.Components\.SubShape\.ShouldCollide') delegate\) transitions between null and non-null. The system uses this to install or remove the Box2D custom filter callback.

C#
internal event Action<bool>? ShouldCollideChanged;

Event Type

System.Action<System.Boolean>