|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox2d.collision.shapes.MassData
public class MassData
This holds the mass data computed for a shape.
| Field Summary | |
|---|---|
Vec2 |
center
The position of the shape's centroid relative to the shape's origin. |
float |
I
The rotational inertia of the shape about the local origin. |
float |
mass
The mass of the shape, usually in kilograms. |
| Constructor Summary | |
|---|---|
MassData()
Blank mass data |
|
MassData(MassData md)
Copies from the given mass data |
|
| Method Summary | |
|---|---|
MassData |
clone()
Return a copy of this object. |
void |
set(MassData md)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float mass
public final Vec2 center
public float I
| Constructor Detail |
|---|
public MassData()
public MassData(MassData md)
md - mass data to copy from| Method Detail |
|---|
public void set(MassData md)
public MassData clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||