This uses real formulas, but the formulas have been modified to work better with the project. Thus, these physics are not entirely accurate. I have taken into account the following factors: Air resistance Acceleration due to gravity Change in gravitational acceleration due to an opposing velocity Acceleration due to an external force (the player moving the ball)
The ball can be picked up and thrown with the mouse. Sometimes the physics messes up and all acceleration is cancelled. Ignore it when it occurs, as I am aware of the issue and do not know how to fix it (it is hard to troubleshoot intermittent bugs).