The class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if filtered). Therefore a contact object may exist that has no contact points.

Constructors

Methods

  • Flag this contact for filtering. Filtering will occur the next time step.

    Returns void

  • Does this contact generate TOI events for continuous simulation.

    Returns boolean

    True for continous, otherwise false.

  • Has this contact been disabled?

    Returns boolean

    True if disabled, otherwise false.

  • Is this contact a sensor?

    Returns boolean

    True if sensor, otherwise false.

  • Is this contact touching.

    Returns boolean

    True if contact is touching, otherwise false.

  • Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collision).

    Parameters

    • flag: boolean

      True to enable, false to disable.

    Returns void

  • Change this to be a sensor or-non-sensor contact.

    Parameters

    • sensor: boolean

      True to be sensor, false to not be a sensor.

    Returns void