You can set the gravity using ph_setgravity(vector(0,0,-386));