GPU Particles

self:get_gravity

Client

Retrieves the gravity applied to particles

Syntax

local gravity = self:get_gravity()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3gravityGravity as {x, y, z}

Examples

Get the gravity
local entity = particle.gpu.create()

local gravity = entity:get_gravity()

core.engine.print("info", util.table.unpack(gravity))

On this page