Collider:getAutomaticMass

Edit

Returns whether automatic mass is enabled for the Collider.

When enabled, the Collider's mass, inertia, and center of mass will be recomputed when:

Additionally, changing the center of mass of a Collider will automatically update its inertia when automatic mass is enabled.

Disable this to manage the mass properties manually. When automatic mass is disabled, Collider:resetMassData can still be used to reset the mass from attached shapes if needed.

enabled = Collider:getAutomaticMass()

Arguments

None

Returns

NameTypeDescription
enabledboolean Whether automatic mass is enabled.

See also