sm.physics.applyTorque

Applies a torque impulse to a Body, changing its angular velocity immediately. The torque is applied along the body's center of mass, making it rotate.

Kind: Function

Environments: Game

Game

sm.physics.applyTorque( target, torque, worldSpace )

Open the full Game reference

Parameters:

Name Type Description
target Body The object on which the torque is exerted on.
torque Vec3 The direction and strength of the torque.
worldSpace (optional) boolean Whether the torque is applied in world space coordinates. (Defaults to local rotation)