GPU Particles

self:set_global_position

Client

Sets the global world-space position of the particle emitter

Syntax

local status = self:set_global_position(
    position
)

Parameters

TypeNameDescription
vector3positionGlobal position to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the global position of a particle emitter
local entity = particle.gpu.create()

entity:set_global_position({0, 5, 10})

On this page