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 |
---|---|
Angular |
See MassProperties.AngularExpansionFactor. |
Inverse |
Zero is allowed, for infinite inertia. |
Inverse |
Zero is allowed, for infinite mass. |
Transform | Center of mass and orientation of principal axes. |
Properties
Name | Description |
---|---|
Center |
Gets or sets the center of mass. |
Has |
Gets a value indicating whether this object has infinite inertia. |
Has |
Gets a value indicating whether this object has infinite mass. |
Inertia |
Gets or sets the inertia orientation. |
Is |
Gets a value indicating whether this object is kinematic. |
Methods
Name | Description |
---|---|
Create |
Creates a dynamic mass. |
Create |
Creates a kinematic mass. |