R3d.Body:applyTorque

From GiderosMobile
Revision as of 14:30, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2019.10
Class: R3d.Body

Description

Applies a torque to the body. <syntaxhighlight lang="lua"> r3d.Body:applyTorque(torqueX,torqueY,torqueZ) </source>

Parameters

torqueX: (number) applies a torque on the X axis
torqueY: (number) applies a torque on the Y axis
torqueZ: (number) applies a torque on the Z axis

Example

<syntaxhighlight lang="lua"> if isleft then ship.body:applyTorque(0, -24 * 64, 0) end </source>