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

TypeNameDescription
boolresulttrue if the condition is met, false otherwise

Examples

Check point gravity on an area
local entity = physics.area.create()

core.engine.print("info", "Area point gravity:", entity:is_gravity_a_point())

On this page