文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

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.