Spec-Zone.ru › LÖVE

Body:applyTorque

Apply torque to a body.

Torque is like a force that will change the angular velocity (spin) of a body. The effect will depend on the rotational inertia a body has.

Function

Synopsis

Body:applyTorque( torque )

Arguments

number torque
The torque to apply.

Returns

Nothing.

See Also

  • Body
  • Body:applyForce
  • Body:applyAngularImpulse
  • Body:getAngle
  • Body:getAngularVelocity
  • Body:setAngularVelocity
  • Body:getInertia


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Body:applyTorque

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API