self:rotate

Client

Rotates the camera around the given axis by the specified angle in world space


Syntax

local status = self:rotate(
    axis,
    degrees
)

Parameters

TypeNameDescription
vector3axisWorld-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 around the Y axis
local entity = core.camera.create()

entity:rotate({0, 1, 0}, 45)

On this page