Struct MassProperties
The mass properties of an object.
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct MassProperties
Fields
Name | Description |
---|---|
AngularExpansionFactor | Upper bound on the rate of change of the object's extent in any direction, with respect to angular speed around its center of mass. Used to determine how much to expand a rigid body's AABB to enclose its swept volume. |
MassDistribution | The distribution of a unit mass throughout the object. |
UnitSphere | (Immutable) The mass properties of a unit sphere. |
Volume | The volume of the object. |
Methods
Name | Description |
---|---|
CreateBox(in float3) | Creates mass properties of a box with the provided side lengths, centered on the origin. |
CreateSphere(in float) | Creates mass properties of a sphere with the provided radius, centered on the origin. |
Scale(float) | Scales the mass properties by the given uniform scale factor assuming unit mass. |