self:rotate_local

Client

Rotates the camera around the given axis in its own local space


Syntax

local status = self:rotate_local(
    axis,
    degrees
)

Parameters

TypeNameDescription
vector3axisLocal-space axis to rotate around as {x, y, z}
floatdegreesAngle to rotate in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Rotate a camera locally around its up axis
local entity = core.camera.create()

entity:rotate_local({0, 1, 0}, 30)

On this page