HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
This holds the mass data computed for a shape. More...
Public Member Functions | |
override string | ToString () |
Returns a string representation of the mass data. | |
MassData (float mass, Vec2? center=null, float rotationalInertia=0) | |
Constructs a new mass data object. | |
MassData () | |
Constructs a new mass data object with default values. | |
This holds the mass data computed for a shape.
|
inline |
Constructs a new mass data object.
mass | The mass of the shape, usually in kilograms. |
center | The position of the shape's centroid relative to the shape's origin. |
rotationalInertia | The rotational inertia of the shape about the local origin. |