MassData class

This holds the mass data computed for a shape.

Contains the mass, inertia and center of the body.

Constructors

MassData()
Blank mass data.
MassData.copy(MassData md)
Copies from the given mass data.

Properties

center Vector2
The position of the shape's centroid relative to the shape's origin.
final
hashCode int
The hash code for this object.
no setterinherited
I double
The rotational inertia of the shape about the local origin.
getter/setter pair
mass double
The mass of the shape, usually in kilograms.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() MassData
Return a copy of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(MassData md) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited