Type Function Object Body Library physics.* Return value none Revision 2017.3060 Keywords body, applyAngularImpulse See also object:applyTorque() object.angularVelocity object.angularDamping object:applyLinearImpulse()
Similar to object:applyTorque() except that an angular impulse is a single momentary jolt.
object:applyAngularImpulse( appliedForce )
Number. Amount of force to apply.
-- Create a rectangle local myRect = display.newRect( 0, 0, 100, 100 ) -- Add a body to the rectangle physics.addBody( myRect, "dynamic" ) -- Apply angular impulse myRect:applyAngularImpulse( 100 )