self:translate_local

Client

Translates the rigid body by an offset in its own local coordinate space


Syntax

local status = self:translate_local(
    offset
)

Parameters

TypeNameDescription
vector3offsetOffset to translate by as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Translate a rigid body locally
local entity = physics.rigid.create()

entity:translate_local({0, 0, -1})

On this page