self:translate_local

Client

Translates the camera by an offset relative to its own local axes


Syntax

local status = self:translate_local(
    offset
)

Parameters

TypeNameDescription
vector3offsetTranslation offset to apply in local space as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Translate a camera along its local forward axis
local entity = core.camera.create()

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

On this page