GPU Particles
self:get_gravity
ClientRetrieves the gravity applied to particles
Syntax
local gravity = self:get_gravity()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | gravity | Gravity as {x, y, z} |
Examples
local entity = particle.gpu.create()
local gravity = entity:get_gravity()
core.engine.print("info", util.table.unpack(gravity))