Do you mean set the world gravity?

Code:
 
ph_setgravity(vector(0,0,-386));



I set the gravity in the main function. I also tested it in the ball's action function. Both exhibit the same problem I described above.