PackageBox2D.Dynamics.Contacts
Classpublic class b2Contact
Sourceb2Contact.as

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.



Public Methods
 MethodDefined by
  
b2Contact
  
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
Constructor detail
b2Contact()constructor
public function b2Contact()
Method detail
FlagForFiltering()method
public function FlagForFiltering():void

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

GetFixtureA()method 
public function GetFixtureA():b2Fixture

Get the first fixture in this contact.

Returns
b2Fixture
GetFixtureB()method 
public function GetFixtureB():b2Fixture

Get the second fixture in this contact.

Returns
b2Fixture
GetManifold()method 
public function GetManifold():b2Manifold

Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D

Returns
b2Manifold
GetNext()method 
public function GetNext():b2Contact

Get the next contact in the world's contact list.

Returns
b2Contact
GetWorldManifold()method 
public function GetWorldManifold(worldManifold:b2WorldManifold):void

Get the world manifold

Parameters
worldManifold:b2WorldManifold
IsContinuous()method 
public function IsContinuous():Boolean

Does this contact generate TOI events for continuous simulation

Returns
Boolean
IsEnabled()method 
public function IsEnabled():Boolean

Has this contact been disabled?

Returns
Boolean
IsSensor()method 
public function IsSensor():Boolean

Is this contact a sensor?

Returns
Boolean
IsTouching()method 
public function IsTouching():Boolean

Is this contact touching.

Returns
Boolean
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).

Parameters
flag:Boolean
SetSensor()method 
public function SetSensor(sensor:Boolean):void

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

Parameters
sensor:Boolean