Event occurring when the sum of the magnitudes of the contact forces between two colliders exceed a threshold.
This object should not be stored anywhere. Its properties can only be read from within the closure given to EventHandler.drainContactForceEvents.
EventHandler.drainContactForceEvents
The first collider involved in the contact.
The second collider involved in the contact.
The world-space (unit) direction of the force with strongest magnitude.
The magnitude of the largest force at a contact point of this contact pair.
The sum of all the forces between the two colliders.
The sum of the magnitudes of each force between the two colliders.
Note that this is not the same as the magnitude of self.total_force. Here we are summing the magnitude of all the forces, instead of taking the magnitude of their sum.
self.total_force
Generated using TypeDoc
Event occurring when the sum of the magnitudes of the contact forces between two colliders exceed a threshold.
This object should not be stored anywhere. Its properties can only be read from within the closure given to
EventHandler.drainContactForceEvents
.