PhysicsBodyComponent.OnCollisionEnter Event
Definition¶
Namespace: Brine2D.ECS.Components
Fired once when another body begins touching this body.
public event Action<PhysicsBodyComponent,CollisionContact>? OnCollisionEnter;
Event Type¶
System.Action<PhysicsBodyComponent,CollisionContact>
Remarks¶
In rare cases — typically when a fast-moving body makes and breaks contact within a single physics sub-step — OnCollisionEnter and OnCollisionExit may both fire on the same fixed-update tick with no intervening Brine2D.ECS.Components.PhysicsBodyComponent.OnCollisionStay. This is expected Box2D behavior.