Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsBody.MassOverride

Selects which of the mass, rotational inertia and center of mass are overridden with authored values instead of being computed from the attached shapes.
Read time 1 minuteLast updated 14 days ago

Definition

[Flags]public enum PhysicsBody.MassOverride

Fields

Value

Description

AllOverride the mass, rotational inertia and center of mass.
CenterOfMassOverride the center of mass. A rotational inertia that is not itself overridden is shifted to the overridden center.
MassOverride the mass. A rotational inertia that is not itself overridden is scaled to the overridden mass, as if the same shapes had a different uniform density.
NoneNothing is overridden; the whole mass configuration is computed from the attached shapes.
RotationalInertiaOverride the rotational inertia.