Module components

Source
Expand description

Mass property components.

Structs§

AngularInertia
The local angular inertia of an entity, representing resistance to angular acceleration. A higher angular inertia requires more torque for the same acceleration.
CenterOfMass
The local center of mass of an entity, representing the average position of mass in the object. Applying forces at this point produces no torque.
ColliderDensity
The density of a Collider, used for computing ColliderMassProperties. Defaults to 1.0.
ColliderMassProperties
A read-only component for the mass properties of a Collider. Computed automatically from the collider’s shape and ColliderDensity.
ComputedAngularInertia
The total local angular inertia computed for a dynamic rigid body as a 3x3 tensor matrix, taking into account colliders and descendants. Represents resistance to angular acceleration.
ComputedCenterOfMass
The local center of mass computed for a dynamic rigid body, taking into account colliders and descendants. Represents the average position of mass in the body.
ComputedMass
The total mass computed for a dynamic rigid body, taking into account colliders and descendants. Represents resistance to linear acceleration.
GlobalAngularInertia
The total world-space angular inertia computed for a dynamic rigid body, taking into account colliders and descendants.
Mass
The mass of an entity, representing resistance to linear acceleration. A higher mass requires more force for the same acceleration.
MassPropertiesBundle
A bundle containing mass properties.
NoAutoAngularInertia
A marker component that prevents descendants or attached colliders from contributing to the total ComputedAngularInertia of a rigid body.
NoAutoCenterOfMass
A marker component that prevents descendants or attached colliders from contributing to the total ComputedCenterOfMass of a rigid body.
NoAutoMass
A marker component that prevents descendants or attached colliders from contributing to the total ComputedMass of a rigid body.
RecomputeMassProperties
A marker component that forces the recomputation of ComputedMass, ComputedAngularInertia and ComputedCenterOfMass for a rigid body.

Enums§

AngularInertiaError
An error returned for an invalid angular inertia.
MassError
An error returned for an invalid mass.