JointComponent.OnBreak Event
Definition¶
Namespace: Brine2D.ECS.Components.Joints
Fired once when this joint is destroyed for any reason: - The reaction force exceeded BreakForce. - The reaction torque exceeded BreakTorque. - The connected body's entity was destroyed or its PhysicsBodyComponent was removed, causing Box2D to implicitly destroy the joint.
After this fires, IsLive is false. The joint will only rebuild
automatically on the next step when RebuildAfterBreak is true.
public event Action<JointComponent>? OnBreak;