PackageBox2D.Dynamics.Contacts
Classpublic class b2Contact
Subclassesb2CircleContact, b2NullContact, b2PolyAndCircleContact, b2PolyContact



Public Properties
 PropertyDefined by
  e_destroyFlag : uint = 0x0002
[static]
b2Contact
  e_islandFlag : uint = 0x0001
[static]
b2Contact
  m_flags : uint
b2Contact
  m_friction : Number
b2Contact
  m_manifoldCount : int
b2Contact
  m_next : b2Contact
b2Contact
  m_node1 : b2ContactNode
b2Contact
  m_node2 : b2ContactNode
b2Contact
  m_prev : b2Contact
b2Contact
  m_restitution : Number
b2Contact
  m_shape1 : b2Shape
b2Contact
  m_shape2 : b2Shape
b2Contact
  s_initialized : Boolean = false
[static]
b2Contact
  s_registers : Array
[static]
b2Contact
Public Methods
 MethodDefined by
  
b2Contact(s1:b2Shape = null, s2:b2Shape = null)
b2Contact
  
AddType(createFcn:*, destroyFcn:*, type1:int, type2:int):void
[static]
b2Contact
  
Create(shape1:b2Shape, shape2:b2Shape, allocator:*):b2Contact
[static]
b2Contact
  
Destroy(contact:b2Contact, allocator:*):void
[static]
b2Contact
  
Evaluate():void
b2Contact
  
b2Contact
  
GetManifolds():Array
b2Contact
  
b2Contact
  
b2Contact
  
b2Contact
  
[static]
b2Contact
Property detail
e_destroyFlagproperty
public static var e_destroyFlag:uint = 0x0002
e_islandFlagproperty 
public static var e_islandFlag:uint = 0x0001
m_flagsproperty 
public var m_flags:uint
m_frictionproperty 
public var m_friction:Number
m_manifoldCountproperty 
public var m_manifoldCount:int
m_nextproperty 
public var m_next:b2Contact
m_node1property 
public var m_node1:b2ContactNode
m_node2property 
public var m_node2:b2ContactNode
m_prevproperty 
public var m_prev:b2Contact
m_restitutionproperty 
public var m_restitution:Number
m_shape1property 
public var m_shape1:b2Shape
m_shape2property 
public var m_shape2:b2Shape
s_initializedproperty 
public static var s_initialized:Boolean = false
s_registersproperty 
public static var s_registers:Array
Constructor detail
b2Contact()constructor
public function b2Contact(s1:b2Shape = null, s2:b2Shape = null)Parameters
s1:b2Shape (default = null)
 
s2:b2Shape (default = null)
Method detail
AddType()method
public static function AddType(createFcn:*, destroyFcn:*, type1:int, type2:int):voidParameters
createFcn:*
 
destroyFcn:*
 
type1:int
 
type2:int
Create()method 
public static function Create(shape1:b2Shape, shape2:b2Shape, allocator:*):b2ContactParameters
shape1:b2Shape
 
shape2:b2Shape
 
allocator:*

Returns
b2Contact
Destroy()method 
public static function Destroy(contact:b2Contact, allocator:*):voidParameters
contact:b2Contact
 
allocator:*
Evaluate()method 
public function Evaluate():void
GetManifoldCount()method 
public function GetManifoldCount():int

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

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

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

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

Returns
b2Shape
InitializeRegisters()method 
public static function InitializeRegisters():void