rigid_body
Rigid body parameters.
Dependencies
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
mass | float | 1 | Mass of the rigid body. A value of 0 is interpreted as infinite mass. |
centerOfMass | vec3 | [ 0, 0, 0 ] | Center of mass. Relative to the entity's transform. |
linearDamping | float | 0 | Linear damping coefficient. Used to slow down the rigid body's linear velocity. Zero represents no damping. Must be non-negative. |
angularDamping | float | 0.05 | Angular 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. |
force | vec3 | [ 0, 0, 0 ] | |
torque | vec3 | [ 0, 0, 0 ] | |
collisionDetection | integer | 0 | The type of collision detection to use for this rigid body. |
useGravity | bool | true | Controls whether rigid body is affected by gravity. |
isKinematic | bool | false | Specifies if rigid body is kinematic. Kinematic rigid bodies are not affected by forces such as gravity. |