|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.physics.box2d.FixtureDef
public class FixtureDef
A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Field Summary | |
---|---|
float |
density
The density, usually in kg/m^2. |
Filter |
filter
Contact filtering data. |
float |
friction
The friction coefficient, usually in the range [0,1]. |
boolean |
isSensor
A sensor shape collects contact information but never generates a collision response. |
float |
restitution
The restitution (elasticity) usually in the range [0,1]. |
Shape |
shape
The shape, this must be set. |
Constructor Summary | |
---|---|
FixtureDef()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Shape shape
public float friction
public float restitution
public float density
public boolean isSensor
public final Filter filter
Constructor Detail |
---|
public FixtureDef()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |