self:translate

Client

Translates the camera by an offset in world space


Syntax

local status = self:translate(
    offset
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Translate a camera in world space
local entity = core.camera.create()

entity:translate({0, 1, 0})

On this page