| Package | Box2D.Collision.Shapes |
| Class | public class b2EdgeChainDef |
| Inheritance | b2EdgeChainDef b2ShapeDef |
| Source | b2EdgeChainDef.as |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | density : Number = 0.0
The shape's density, usually in kg/m^2.
| b2ShapeDef | |
![]() | filter : b2FilterData
Contact filtering data.
| b2ShapeDef | |
![]() | friction : 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 | ||
![]() | isSensor : Boolean = false
A sensor shape collects contact information but never generates a collision
response.
| b2ShapeDef | |
![]() | restitution : Number = 0.0
The shape's restitution (elasticity) usually in the range [0,1].
| b2ShapeDef | |
![]() | type : int
Holds the shape type for down-casting.
| b2ShapeDef | |
![]() | userData : * = 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 | ||
| Method | Defined by | ||
|---|---|---|---|
| b2EdgeChainDef | |||
| isALoop | property |
public var isALoop:BooleanWhether to create an extra edge between the first and last vertices.
| vertexCount | property |
public var vertexCount:intThe number of vertices in the chain.
| vertices | property |
public var vertices:ArrayThe vertices in local coordinates.
| b2EdgeChainDef | () | constructor |
public function b2EdgeChainDef()