public class FixtureDef
- Object
- FixtureDef
A fixture definition is used to create a fixture. This class defines an
abstract fixture definition. You can reuse fixture definitions safely.
Fields
public Shape shape | The shape, this must be set. |
public Object userData | Use this to store application specific fixture data. |
public float friction | The friction coefficient, usually in the range [0,1]. |
public float restitution | The restitution (elasticity) usually in the range [0,1]. |
public float density | The density, usually in kg/m^2 |
public boolean isSensor | A sensor shape collects contact information but never generates a collision response. |
public Filter filter | Contact filtering data; |
Constructors
public FixtureDef() |
Inherited methods
Field details
shape
public Shape shapeThe shape, this must be set. The shape will be cloned, so you
can create the shape on the stack.
userData
public Object userDataUse this to store application specific fixture data.
friction
public float frictionThe friction coefficient, usually in the range [0,1].
restitution
public float restitutionThe restitution (elasticity) usually in the range [0,1].
density
public float densityThe density, usually in kg/m^2
isSensor
public boolean isSensorA sensor shape collects contact information but never generates a collision
response.
filter
public Filter filterContact filtering data;
Constructor details
FixtureDef
public FixtureDef()