typedef b2Contactb2ContactCreateFcn(b2Shapeshape1, b2Shapeshape2, b2BlockAllocatorallocator);
typedef void b2ContactDestroyFcn(b2Contactcontact, b2BlockAllocatorallocator);
public static var e_islandFlag:uint = 0x0004
public static var e_nonSolidFlag:uint = 0x0001
public static var e_slowFlag:uint = 0x0002
public static var e_toiFlag:uint = 0x0008
b2internal var m_flags:uint
b2internal var m_friction:Number
b2internal var m_manifoldCount:int
b2internal var m_next:b2Contact
b2internal var m_node1:b2ContactEdge
b2internal var m_node2:b2ContactEdge
b2internal var m_prev:b2Contact
b2internal var m_restitution:Number
b2internal var m_shape1:b2Shape
b2internal var m_shape2:b2Shape
b2internal var m_toi:Number
public static var s_initialized:Boolean = false
public static var s_registers:Array
public function b2Contact(s1:b2Shape = null, s2:b2Shape = null)
Parameters
public static function AddType(createFcn:Function, destroyFcn:Function, type1:int, type2:int):void
Parameters
| createFcn:Function |
|
| destroyFcn:Function |
|
| type1:int |
|
| type2:int |
public static function Create(shape1:b2Shape, shape2:b2Shape, allocator:*):b2Contact
Parameters
Returns
public static function Destroy(contact:b2Contact, allocator:*):void
Parameters
public function Evaluate(listener:b2ContactListener):void
Parameters
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
public function GetManifolds():Array
Returns
public function GetNext():b2Contact
Get the next contact in the world's contact list.
Returns
public function GetShape1():b2Shape
Get the first shape in this contact.
Returns
public function GetShape2():b2Shape
Get the second shape in this contact.
Returns
public static function InitializeRegisters():void
public function IsSolid():Boolean
Is this contact solid?
Returns
| Boolean — true if this contact should generate a response.
|
public function Update(listener:b2ContactListener):void
Parameters