Model
self:set_global_rotation
SharedSets the global rotation of the model
Syntax
local status = self:set_global_rotation(
rotation
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | rotation | Rotation to apply in degrees as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
entity:set_global_rotation({0, 90, 0})