PackageBox2D.Collision.Shapes
Classpublic class b2PolyShape
Inheritanceb2PolyShape Inheritance b2Shape



Public Properties
 PropertyDefined by
 Inheritedm_body : b2Body
b2Shape
 Inheritedm_categoryBits : uint
b2Shape
  m_coreVertices : Array
b2PolyShape
 Inheritedm_friction : Number
b2Shape
 Inheritedm_groupIndex : int
b2Shape
  m_localCentroid : b2Vec2
b2PolyShape
  m_localOBB : b2OBB
b2PolyShape
 Inheritedm_maskBits : uint
b2Shape
 Inheritedm_maxRadius : Number
b2Shape
 Inheritedm_next : b2Shape
b2Shape
  m_normals : Array
b2PolyShape
 Inheritedm_position : b2Vec2
b2Shape
 Inheritedm_proxyId : uint
b2Shape
 Inheritedm_R : b2Mat22
b2Shape
 Inheritedm_restitution : Number
b2Shape
 Inheritedm_type : int
b2Shape
 Inheritedm_userData : * = null
b2Shape
  m_vertexCount : int
b2PolyShape
  m_vertices : Array
b2PolyShape
Public Methods
 MethodDefined by
  
b2PolyShape(def:b2ShapeDef, body:b2Body, newOrigin:b2Vec2)
b2PolyShape
 Inherited
Create(def:b2ShapeDef, body:b2Body, center:b2Vec2):b2Shape
[static]
b2Shape
 Inherited
Destroy(shape:b2Shape):void
[static]
b2Shape
 Inherited
DestroyProxy():void
b2Shape
 Inherited
b2Shape
 Inherited
GetMaxRadius():Number
b2Shape
 Inherited
b2Shape
 Inherited
b2Shape
 Inherited
b2Shape
 Inherited
GetType():int
b2Shape
 Inherited
b2Shape
 Inherited
PolyCentroid(vs:Array, count:int, out:b2Vec2):void
[static]
b2Shape
 Inherited
PolyMass(massData:b2MassData, vs:Array, count:int, rho:Number):void
[static]
b2Shape
  
QuickSync(position:b2Vec2, R:b2Mat22):void
b2PolyShape
  
ResetProxy(broadPhase:b2BroadPhase):void
b2PolyShape
  
Support(dX:Number, dY:Number, out:b2Vec2):void
b2PolyShape
  
Synchronize(position1:b2Vec2, R1:b2Mat22, position2:b2Vec2, R2:b2Mat22):void
b2PolyShape
  
TestPoint(p:b2Vec2):Boolean
b2PolyShape
Public Constants
 ConstantDefined by
 Inheritede_boxShape : int = 1
[static]
b2Shape
 Inheritede_circleShape : int = 0
[static]
b2Shape
 Inheritede_meshShape : int = 3
[static]
b2Shape
 Inheritede_polyShape : int = 2
[static]
b2Shape
 Inheritede_shapeTypeCount : int = 4
[static]
b2Shape
 Inheritede_unknownShape : int = -1
[static]
b2Shape
Property detail
m_coreVerticesproperty
public var m_coreVertices:Array
m_localCentroidproperty 
public var m_localCentroid:b2Vec2
m_localOBBproperty 
public var m_localOBB:b2OBB
m_normalsproperty 
public var m_normals:Array
m_vertexCountproperty 
public var m_vertexCount:int
m_verticesproperty 
public var m_vertices:Array
Constructor detail
b2PolyShape()constructor
public function b2PolyShape(def:b2ShapeDef, body:b2Body, newOrigin:b2Vec2)Parameters
def:b2ShapeDef
 
body:b2Body
 
newOrigin:b2Vec2
Method detail
QuickSync()method
public override function QuickSync(position:b2Vec2, R:b2Mat22):voidParameters
position:b2Vec2
 
R:b2Mat22
ResetProxy()method 
public override function ResetProxy(broadPhase:b2BroadPhase):voidParameters
broadPhase:b2BroadPhase
Support()method 
public override function Support(dX:Number, dY:Number, out:b2Vec2):voidParameters
dX:Number
 
dY:Number
 
out:b2Vec2
Synchronize()method 
public override function Synchronize(position1:b2Vec2, R1:b2Mat22, position2:b2Vec2, R2:b2Mat22):voidParameters
position1:b2Vec2
 
R1:b2Mat22
 
position2:b2Vec2
 
R2:b2Mat22
TestPoint()method 
public override function TestPoint(p:b2Vec2):BooleanParameters
p:b2Vec2

Returns
Boolean