Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • b2Contact

Index

Constructors

Methods

  • FlagForFiltering(): void
  • IsContinuous(): boolean
  • Does this contact generate TOI events for continuous simulation.

    Returns boolean

    True for continous, otherwise false.

  • IsEnabled(): boolean
  • IsSensor(): boolean
  • IsTouching(): boolean
  • SetEnabled(flag: boolean): void
  • 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

  • SetSensor(sensor: boolean): 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

Generated using TypeDoc