Rigid Body

self:get_gravity_scale

Shared

Retrieves the gravity scale multiplier of the rigid body

Syntax

local value = self:get_gravity_scale()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent gravity scale multiplier

Examples

Get the gravity scale of a rigid body
local entity = physics.rigid.create()

core.engine.print("info", "Rigid body gravity scale:", entity:get_gravity_scale())

On this page