self:set_global_rotation
Client
Sets the global rotation of the camera in Euler degrees
Syntax
local status = self:set_global_rotation(
euler_degrees
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | euler_degrees | Global rotation to apply as Euler degrees {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.camera.create()
entity:set_global_rotation({0, 90, 0})