self:is_gravity_a_point
Client
Checks whether the area's gravity is set to point mode, pulling toward a center instead of a fixed direction
Syntax
local result = self:is_gravity_a_point()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the condition is met, false otherwise |
Examples
local entity = physics.area.create()
core.engine.print("info", "Area point gravity:", entity:is_gravity_a_point())