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
  
Get the number of manifolds.
b2Contact
  
GetManifolds():Array
b2Contact
  
Get the next contact in the world's contact list.
b2Contact
  
Get the first shape in this contact.
b2Contact
  
Get the second shape in this contact.
b2Contact
  
IsSolid():Boolean
Is this contact solid?
b2Contact
Method detail
GetManifoldCount()method
public function GetManifoldCount():int

Get the number of manifolds. This is 0 or 1 between convex shapes. This may be greater than 1 for convex-vs-concave shapes. Each manifold holds up to two contact points with a shared contact normal.

Returns
int
GetManifolds()method 
public function GetManifolds():Array

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

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

Returns
b2Contact
GetShape1()method 
public function GetShape1():b2Shape

Get the first shape in this contact.

Returns
b2Shape
GetShape2()method 
public function GetShape2():b2Shape

Get the second shape in this contact.

Returns
b2Shape
IsSolid()method 
public function IsSolid():Boolean

Is this contact solid?

Returns
Boolean — true if this contact should generate a response.