Package org.jbox2d.collision.shapes
Class MassData
java.lang.Object
org.jbox2d.collision.shapes.MassData
public class MassData
extends java.lang.Object
This holds the mass data computed for a shape.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
mass
public float massThe mass of the shape, usually in kilograms. -
center
The position of the shape's centroid relative to the shape's origin. -
I
public float IThe rotational inertia of the shape about the local origin.
-
-
Constructor Details
-
MassData
public MassData()Blank mass data -
MassData
Copies from the given mass data- Parameters:
md
- mass data to copy from
-
-
Method Details
-
set
-
clone
Return a copy of this object.- Overrides:
clone
in classjava.lang.Object
-