Rigid Body

rigid_body

Rigid body parameters.

Dependencies

Attributes

AttributeTypeDefaultDescription
massfloat1Mass of the rigid body. A value of 0 is interpreted as infinite mass.
centerOfMassvec3[ 0, 0, 0 ]Center of mass. Relative to the entity's transform.
linearDampingfloat0Linear damping coefficient. Used to slow down the rigid body's linear velocity. Zero represents no damping. Must be non-negative.
angularDampingfloat0.05Angular damping coefficient. Used to slow down the rigid body's angular velocity, i.e. how much it rotates. Zero represents no damping. Must be non-negative.
forcevec3[ 0, 0, 0 ]
torquevec3[ 0, 0, 0 ]
isKinematicboolfalseSpecifies if rigid body is kinematic. Kinematic rigid bodies are not affected by forces.