self:set_gravity_space_override_mode

Client

Sets the gravity space override mode of the area


Syntax

local status = self:set_gravity_space_override_mode(
    mode
)

Parameters

TypeNameDescription
intmodeSpace override enum value — refer to physics.area.space_override

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the gravity space override mode of an area
local entity = physics.area.create()

entity:set_gravity_space_override_mode(physics.area.space_override.REPLACE)

On this page