self:translate_local

Client

Translates the vehicle 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 vehicle body locally
local entity = physics.vehicle.create()

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

On this page