19.9.25
setGravity
self = physics.Space:setGravity(grav)
Parameter |
Type |
Description |
---|---|---|
self |
in physics.Space |
The input simulation Space |
grav |
in physics.Vect |
The gravity force vector applied to all Bodies in the simula- tion Space. Defaults to physics.Vect(0, 0) |
self |
out physics.Space |
The input Space is returned as the output |
Global gravity applied to the Space. Can be overridden on a per body basis by writing custom integration functions
Introduced in platform.apiLevel = '2.0'