| Package | Box2D.Dynamics |
| Class | public class b2FixtureDef |
| Source | b2FixtureDef.as |
| Property | Defined by | ||
|---|---|---|---|
| density : Number
The density, usually in kg/m^2.
| b2FixtureDef | ||
| filter : b2FilterData
Contact filtering data.
| b2FixtureDef | ||
| friction : Number
The friction coefficient, usually in the range [0,1].
| b2FixtureDef | ||
| isSensor : Boolean
A sensor shape collects contact information but never generates a collision
response.
| b2FixtureDef | ||
| restitution : Number
The restitution (elasticity) usually in the range [0,1].
| b2FixtureDef | ||
| shape : b2Shape
The shape, this must be set.
| b2FixtureDef | ||
| userData : *
Use this to store application specific fixture data.
| b2FixtureDef | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor sets the default fixture definition values.
| b2FixtureDef | ||
| density | property |
public var density:NumberThe density, usually in kg/m^2.
| filter | property |
public var filter:b2FilterDataContact filtering data.
| friction | property |
public var friction:NumberThe friction coefficient, usually in the range [0,1].
| isSensor | property |
public var isSensor:BooleanA sensor shape collects contact information but never generates a collision response.
| restitution | property |
public var restitution:NumberThe restitution (elasticity) usually in the range [0,1].
| shape | property |
public var shape:b2ShapeThe shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
| userData | property |
public var userData:*Use this to store application specific fixture data.
| b2FixtureDef | () | constructor |
public function b2FixtureDef()The constructor sets the default fixture definition values.