PackageBox2D.Collision.Shapes
Classpublic class b2EdgeChainDef
Inheritanceb2EdgeChainDef Inheritance b2ShapeDef
Sourceb2EdgeChainDef.as

This structure is used to build edge shapes.

See also

b2EdgeShape


Public Properties
 PropertyDefined by
 Inheriteddensity : Number = 0.0
The shape's density, usually in kg/m^2.
b2ShapeDef
 Inheritedfilter : b2FilterData
Contact filtering data.
b2ShapeDef
 Inheritedfriction : Number = 0.2
The shape's friction coefficient, usually in the range [0,1].
b2ShapeDef
  isALoop : Boolean
Whether to create an extra edge between the first and last vertices.
b2EdgeChainDef
 InheritedisSensor : Boolean = false
A sensor shape collects contact information but never generates a collision response.
b2ShapeDef
 Inheritedrestitution : Number = 0.0
The shape's restitution (elasticity) usually in the range [0,1].
b2ShapeDef
 Inheritedtype : int
Holds the shape type for down-casting.
b2ShapeDef
 InheriteduserData : * = null
Use this to store application specify shape data.
b2ShapeDef
  vertexCount : int
The number of vertices in the chain.
b2EdgeChainDef
  vertices : Array
The vertices in local coordinates.
b2EdgeChainDef
Public Methods
 MethodDefined by
  
b2EdgeChainDef
Property detail
isALoopproperty
public var isALoop:Boolean

Whether to create an extra edge between the first and last vertices.

vertexCountproperty 
public var vertexCount:int

The number of vertices in the chain.

verticesproperty 
public var vertices:Array

The vertices in local coordinates.

Constructor detail
b2EdgeChainDef()constructor
public function b2EdgeChainDef()