public class MassData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
MassData()
Blank mass data
|
MassData(MassData md)
Copies from the given mass data
|
Modifier and Type | Method and Description |
---|---|
MassData |
clone()
Return a copy of this object.
|
void |
set(MassData md) |
public float mass
public final Vec2 center
public float I
public MassData()
public MassData(MassData md)
md
- mass data to copy fromCopyright © 2017. All Rights Reserved.