World:getGravity

Returns the gravity of the World.

xg, yg, zg = World:getGravity()

Arguments

None

Returns

NameTypeDescription
xgnumberThe x component of the gravity force.
ygnumberThe y component of the gravity force.
zgnumberThe z component of the gravity force.

See also