We've built an open source Java/OpenGL Ping Pong Game. The game is controlled with Nintendo Wiimote, and has realistic physics, built from the ground up.
WingPong was developed as part of a 7 week project course at University of Southern Denmark (Department of Mathematics and Computer Science).
It is written by the three first semester students Felix. P. Hargreaves, Søren Haagerup and Lasse Faxøe.
The game can interact with two wiimotes at the same time: One for controlling the position and rotation of the bat; the other is used for headtracking.
We have implemented our own algorithms for reliable position and orientation detection.
The physics in the game builds on the ideas about impulse-based dynamic simulation. The dynamic body quantities are integrated using a simple Euler integrator.
We have developed our own formulas for realistic collission reaction, taking friction between the bat and the ball into account.