PackageBox2D.Collision
Classpublic class b2Manifold
Sourceb2Manifold.as

A manifold for two touching convex shapes. Box2D supports multiple types of contact: - clip point versus plane with radius - point versus point with radius (circles) The local point usage depends on the manifold type: -e_circles: the local center of circleA -e_faceA: the center of faceA -e_faceB: the center of faceB Similarly the local normal usage: -e_circles: not used -e_faceA: the normal on polygonA -e_faceB: the normal on polygonB We store contacts in this way so that position correction can account for movement, which is critical for continuous physics. All contact scenarios must be expressed in one of these types. This structure is stored across time steps, so we keep it small.



Public Properties
 PropertyDefined by
  m_localPlaneNormal : b2Vec2
Not used for Type e_points
b2Manifold
  m_localPoint : b2Vec2
Usage depends on manifold type
b2Manifold
  m_pointCount : int = 0
The number of manifold points
b2Manifold
  m_points : Vector
The points of contact
b2Manifold
  m_type : int
b2Manifold
Public Methods
 MethodDefined by
  
b2Manifold
  
b2Manifold
  
Reset():void
b2Manifold
  
Set(m:b2Manifold):void
b2Manifold
Public Constants
 ConstantDefined by
  e_circles : int = 0x0001
[static]
b2Manifold
  e_faceA : int = 0x0002
[static]
b2Manifold
  e_faceB : int = 0x0004
[static]
b2Manifold
Property detail
m_localPlaneNormalproperty
public var m_localPlaneNormal:b2Vec2

Not used for Type e_points

m_localPointproperty 
public var m_localPoint:b2Vec2

Usage depends on manifold type

m_pointCountproperty 
public var m_pointCount:int = 0

The number of manifold points

m_pointsproperty 
public var m_points:Vector

The points of contact

m_typeproperty 
public var m_type:int
Constructor detail
b2Manifold()constructor
public function b2Manifold()
Method detail
Copy()method
public function Copy():b2Manifold

Returns
b2Manifold
Reset()method 
public function Reset():void
Set()method 
public function Set(m:b2Manifold):voidParameters
m:b2Manifold
Constant detail
e_circlesconstant
public static const e_circles:int = 0x0001
e_faceAconstant 
public static const e_faceA:int = 0x0002
e_faceBconstant 
public static const e_faceB:int = 0x0004