Package | Box2D.Dynamics.Contacts |
Class | public class b2Contact |
Source | b2Contact.as |
Method | Defined by | ||
---|---|---|---|
b2Contact | |||
FlagForFiltering():void
Flag this contact for filtering.
| b2Contact | ||
Get the first fixture in this contact.
| b2Contact | ||
Get the second fixture in this contact.
| b2Contact | ||
Get the contact manifold.
| b2Contact | ||
Get the next contact in the world's contact list.
| b2Contact | ||
GetWorldManifold(worldManifold:b2WorldManifold):void
Get the world manifold
| b2Contact | ||
IsContinuous():Boolean
Does this contact generate TOI events for continuous simulation
| b2Contact | ||
IsEnabled():Boolean
Has this contact been disabled?
| b2Contact | ||
IsSensor():Boolean
Is this contact a sensor?
| b2Contact | ||
IsTouching():Boolean
Is this contact touching.
| b2Contact | ||
SetEnabled(flag:Boolean):void
Enable/disable this contact.
| b2Contact | ||
SetSensor(sensor:Boolean):void
Change this to be a sensor or-non-sensor contact.
| b2Contact |
b2Contact | () | constructor |
public function b2Contact()
FlagForFiltering | () | method |
public function FlagForFiltering():void
Flag this contact for filtering. Filtering will occur the next time step.
GetFixtureA | () | method |
GetFixtureB | () | method |
GetManifold | () | method |
public function GetManifold():b2Manifold
Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D
Returnsb2Manifold |
GetNext | () | method |
public function GetNext():b2Contact
Get the next contact in the world's contact list.
Returnsb2Contact |
GetWorldManifold | () | method |
public function GetWorldManifold(worldManifold:b2WorldManifold):void
Get the world manifold
ParametersworldManifold:b2WorldManifold |
IsContinuous | () | method |
public function IsContinuous():Boolean
Does this contact generate TOI events for continuous simulation
ReturnsBoolean |
IsEnabled | () | method |
public function IsEnabled():Boolean
Has this contact been disabled?
ReturnsBoolean |
IsSensor | () | method |
public function IsSensor():Boolean
Is this contact a sensor?
ReturnsBoolean |
IsTouching | () | method |
public function IsTouching():Boolean
Is this contact touching.
ReturnsBoolean |
SetEnabled | () | method |
public function 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).
Parametersflag:Boolean |
SetSensor | () | method |
public function SetSensor(sensor:Boolean):void
Change this to be a sensor or-non-sensor contact.
Parameterssensor:Boolean |