You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > setTorque

19.4.26 setTorque

self = physics.Body:setTorque(torque)

Parameter

Type

Description

self

in physics.Body

The input Body

torque

in number

The torque of the Body

self

out physics.Body

The input Body is returned as the output

Updates the torque on the body. Torque is a numeric magnitude.

Returns the Body.

Introduced in platform.apiLevel = '2.0'