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.
Does this contact generate TOI events for continuous simulation.
Returns boolean
True for continous, otherwise false.
IsEnabled
IsEnabled():boolean
Has this contact been disabled?
Returns boolean
True if disabled, otherwise false.
IsSensor
IsSensor():boolean
Is this contact a sensor?
Returns boolean
True if sensor, otherwise false.
IsTouching
IsTouching():boolean
Is this contact touching.
Returns boolean
True if contact is touching, otherwise false.
SetEnabled
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).
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.