Struct PhysicsMass
The mass properties of a rigid body. If not present, the rigid body has infinite mass and inertia.
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct PhysicsMass : IComponentData, IQueryTypeParameter
Fields
| Name | Description |
|---|---|
| AngularExpansionFactor | See MassProperties.AngularExpansionFactor. |
| InverseInertia | Zero is allowed, for infinite inertia. |
| InverseMass | Zero is allowed, for infinite mass. |
| Transform | Center of mass and orientation of principal axes. |
Properties
| Name | Description |
|---|---|
| CenterOfMass | Gets or sets the center of mass. |
| HasInfiniteInertia | Gets a value indicating whether this object has infinite inertia. |
| HasInfiniteMass | Gets a value indicating whether this object has infinite mass. |
| InertiaOrientation | Gets or sets the inertia orientation. |
| IsKinematic | Gets a value indicating whether this object is kinematic. |
Methods
| Name | Description |
|---|---|
| CreateDynamic(MassProperties, float) | Creates a dynamic mass. |
| CreateKinematic(MassProperties) | Creates a kinematic mass. |