GPU Particles

self:set_local_coords

Client

Sets whether particles move with the emitter

Syntax

local status = self:set_local_coords(
    state
)

Parameters

TypeNameDescription
boolstatetrue for particles that move with the emitter, false to leave them in world space

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Keep particles in world space
local entity = particle.gpu.create()

entity:set_local_coords(false)

On this page