self:set_gravity_is_point
Client
Sets whether the area's gravity is point-based
Syntax
local status = self:set_gravity_is_point(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to make gravity pull toward a point, false to use a fixed direction |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.area.create()
entity:set_gravity_is_point(true)