self:translate
Client
Translates the camera by an offset in world space
Syntax
local status = self:translate(
offset
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | offset | Translation offset to apply in world space as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.camera.create()
entity:translate({0, 1, 0})