Is there any lua function to tell which gravity mode the simulation is in?
Nevermind, sim.gravityMode() should work.