|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.collision.ShapeDef
public class ShapeDef
Superclass for shape definitions. You should usually use CircleDef or PolygonDef to define concrete shapes.
Field Summary | |
---|---|
float |
density
The shape's density, usually in kg/m^2. |
FilterData |
filter
Contact filtering data. |
float |
friction
The shape's 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 shape's restitution (elasticity) usually in the range [0,1]. |
ShapeType |
type
Holds the shape type for down-casting. |
java.lang.Object |
userData
Use this to store application specify shape data. |
Constructor Summary | |
---|---|
ShapeDef()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ShapeType type
public java.lang.Object userData
public float friction
public float restitution
public float density
public FilterData filter
public boolean isSensor
Constructor Detail |
---|
public ShapeDef()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |