PackageBox2D.Dynamics
Classpublic class b2FixtureDef
Sourceb2FixtureDef.as

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
The constructor sets the default fixture definition values.
b2FixtureDef
Property detail
densityproperty
public var density:Number

The density, usually in kg/m^2.

filterproperty 
public var filter:b2FilterData

Contact filtering data.

frictionproperty 
public var friction:Number

The friction coefficient, usually in the range [0,1].

isSensorproperty 
public var isSensor:Boolean

A sensor shape collects contact information but never generates a collision response.

restitutionproperty 
public var restitution:Number

The restitution (elasticity) usually in the range [0,1].

shapeproperty 
public var shape:b2Shape

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.

userDataproperty 
public var userData:*

Use this to store application specific fixture data.

Constructor detail
b2FixtureDef()constructor
public function b2FixtureDef()

The constructor sets the default fixture definition values.