each ball has its own gravity. the others will fly around each affected by eachothers gravity. the mouse has its own gravitational force too, all you have to do is hold down the mouse. if anyone is wondering, the reason some balls go flying off in a random direction, its because the balls get in such a tight orbit around eachother that the variables go crazy and the ball goes flying. press space to trace.