19.9.11 gravity

grav = physics.Space:gravity()

Parameter

Type

Description

self

in physics.Space

The input simulation Space

grav

out physics.Vect

The gravity force vector applied to all Bodies in the simulation Space.

Introduced in platform.apiLevel = '2.0'