GPU Particles

self:rotate_local

Client

Rotates the particle emitter around the given axis in its own local space

Syntax

local status = self:rotate_local(
    axis,
    degrees
)

Parameters

TypeNameDescription
vector3axisLocal-space axis to rotate around as {x, y, z}
floatdegreesAngle to rotate in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Rotate a particle emitter locally around its up axis
local entity = particle.gpu.create()

entity:rotate_local({0, 1, 0}, 30)

On this page