object.angularDamping

Type Number
Object Body
Library physics.*
Revision 2017.3060
Keywords body, angularDamping, physics
See also object.angularVelocity
object:applyAngularImpulse()
object:applyTorque()

Overview

The numerical value for how much the body's rotation should be damped. The default is zero (0). There is no minimum or maximum value — just adjust to get the desired results.

Example

-- Create a rectangle
local myRect = display.newRect( 0, 0, 100, 100 )

-- Add a body to the rectangle
physics.addBody( myRect, "dynamic" )

-- Set the rectangle's angular damping
myRect.angularDamping = 5