World:setAngularDamping
EditSets the angular damping of the World. Angular damping makes things less "spinny", making them slow down their angular velocity over time. Damping is only applied when angular velocity is over the threshold value.
World:setAngularDamping(damping, threshold)
Arguments
Name | Type | Default | Description |
damping | number | The angular damping. | |
threshold | number | 0 | Velocity limit below which the damping is not applied. |
Returns
Nothing
Notes
This sets the default damping for newly-created colliders. Damping can also be set on a per-collider basis using Collider:setAngularDamping
.