A physics engine using Direct3D