Package org.jbox2d.dynamics
Class FixtureDef
java.lang.Object
org.jbox2d.dynamics.FixtureDef
public class FixtureDef
extends java.lang.Object
A fixture definition is used to create a fixture. This class defines an
abstract fixture definition. You can reuse fixture definitions safely.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
The density, usually in kg/m^2Contact filtering data;float
The friction coefficient, usually in the range [0,1].boolean
A sensor shape collects contact information but never generates a collision response.float
The restitution (elasticity) usually in the range [0,1].The shape, this must be set.java.lang.Object
Use this to store application specific fixture data. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
shape
The shape, this must be set. The shape will be cloned, so you can create the shape on the stack. -
userData
public java.lang.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
Contact filtering data;
-
-
Constructor Details
-
FixtureDef
public FixtureDef()
-