Update: studying ball physics.
http://weknowtoomuch.com/ping-pong/ball.html
Press space for pause/resume, and +/- (next to backspace on your keyboard) to slow down/accelerate
It's just a simple "study", using no libraries, just canvas and some javascript (product of my intuition).
This is what I want simulated:
- gravity (obviously)
- static wind resistance
- random wind deflection
- spin (affecting collision with table, bat, and ball trajectory)
- collision and rebound (obviously)
I'm looking into libraries such as physics.js. Here is an example that might be of use:
http://jsfiddle.net/wellcaffeinated/KkDb6/
There is a Gihub repo if anyone is interested, but you can see the code in the HTML as well there is no server-side magic happening (yet!).
Note: I'm planning for the game to be 3D, but at the moment I'm only experimenting on 2 dimensions.