org.jbox2d.collision
Class MassData

java.lang.Object
  extended by org.jbox2d.collision.MassData

public class MassData
extends java.lang.Object

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.
 float mass
          The mass of the shape, usually in kilograms.
 
Constructor Summary
MassData()
           
MassData(MassData md)
           
 
Method Summary
 MassData clone()
          Return a copy of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mass

public float mass
The mass of the shape, usually in kilograms.


center

public Vec2 center
The position of the shape's centroid relative to the shape's origin.


I

public float I
The rotational inertia of the shape.

Constructor Detail

MassData

public MassData()

MassData

public MassData(MassData md)
Method Detail

clone

public MassData clone()
Return a copy of this object.

Overrides:
clone in class java.lang.Object