self:set_gravity_point_center
Client
Sets the point gravity center of the area
Syntax
local status = self:set_gravity_point_center(
center
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | center | Point to 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_point_center({0, 0, 0})