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

19.4.33 torque

t = physics.Body:torque()

Parameter

Type

Description

self

in physics.Body

The input Body

torque

out number

The torque on the Body

Returns the torque on the Body.

Introduced in platform.apiLevel = '2.0'