self:set_gravity_direction
Client
Sets the gravity direction of the area
Syntax
local status = self:set_gravity_direction(
direction
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | direction | Direction gravity should pull toward as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.area.create()
entity:set_gravity_direction({0, -1, 0})