self:set_constant_torque

Client

Overwrites the rigid body's persistent constant torque


Syntax

local status = self:set_constant_torque(
    torque
)

Parameters

TypeNameDescription
vector3torqueTorque vector to set as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Overwrite the constant torque
local entity = physics.rigid.create()

entity:set_constant_torque({0, 0, 0})

On this page