self:set_global_position
Client
Sets the global world-space position of the directional light
Syntax
local status = self:set_global_position(
position
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | position | Position to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_global_position({0, 5, 0})