GPU Particles
self:set_gravity
ClientSets the gravity applied to particles
Syntax
local status = self:set_gravity(
gravity
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | gravity | Gravity as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_gravity({0, 1, 0})