Package | Box2D.Collision.Shapes |
Class | public class b2ShapeDef |
Subclasses | b2CircleDef, b2EdgeChainDef, b2PolygonDef |
Source | b2ShapeDef.as |
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 | ||
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 |
density | property |
public var density:Number = 0.0
The shape's density, usually in kg/m^2.
filter | property |
public var filter:b2FilterData
Contact filtering data.
friction | property |
public var friction:Number = 0.2
The shape's friction coefficient, usually in the range [0,1].
isSensor | property |
public var isSensor:Boolean = false
A sensor shape collects contact information but never generates a collision response.
restitution | property |
public var restitution:Number = 0.0
The shape's restitution (elasticity) usually in the range [0,1].
type | property |
public var type:int
Holds the shape type for down-casting.
userData | property |
public var userData:* = null
Use this to store application specify shape data.