Class TempContactForceEvent

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.

Hierarchy

  • TempContactForceEvent

Constructors

Properties

raw: RawContactForceEvent

Methods

  • The first collider involved in the contact.

    Returns number

  • The second collider involved in the contact.

    Returns number

  • Returns void

  • The world-space (unit) direction of the force with strongest magnitude.

    Returns Vector

  • The magnitude of the largest force at a contact point of this contact pair.

    Returns number

  • The sum of all the forces between the two colliders.

    Returns Vector

  • 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.

    Returns number

Generated using TypeDoc