Difference between revisions of "Body:applyAngularImpulse"

(See Also: Add some related functions)
m (See Also: Add getInertia)
Line 17: Line 17:
 
* [[Body:applyLinearImpulse]]
 
* [[Body:applyLinearImpulse]]
 
* [[Body:applyTorque]]
 
* [[Body:applyTorque]]
 +
* [[Body:getAngle]]
 
* [[Body:getAngularVelocity]]
 
* [[Body:getAngularVelocity]]
* [[Body:getAngle]]
+
* [[Body:getInertia]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Applies an angular impulse to a body.}}
 
{{#set:Description=Applies an angular impulse to a body.}}

Revision as of 19:02, 25 November 2019

Available since LÖVE 0.8.0
This method is not supported in earlier versions.

Applies an angular impulse to a body. This makes a single, instantaneous addition to the body momentum.

A body with with a larger mass will react less. The reaction does not depend on the timestep, and is equivalent to applying a force continuously for 1 second. Impulses are best used to give a single push to a body. For a continuous push to a body it is better to use Body:applyForce.

Function

Synopsis

Body:applyAngularImpulse( impulse )

Arguments

number impulse
The impulse in kilogram-square meter per second.

Returns

Nothing.

See Also


Other Languages