self:set_gravity_point_center

Client

Sets the point gravity center of the area


Syntax

local status = self:set_gravity_point_center(
    center
)

Parameters

TypeNameDescription
vector3centerPoint to pull toward as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the gravity point center of an area
local entity = physics.area.create()

entity:set_gravity_point_center({0, 0, 0})

On this page