Type Number Object Body Library physics.* Revision Release 2022.3683 Keywords body, angularDamping, physics See also object.angularVelocity object:applyAngularImpulse() object:applyTorque()
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.
-- 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