It has taken me a while to get PhysX integrated with my engine and also trying to maintain a generic structure. I finally got it working well and I have also implemented the one thing I was struggling to do with Bullet, which is callbacks.
Essentially all they do is report when specified pairs collide so you can do some sort of game logic, in my case this was when the ball bounced with the floor or with an area that was out of play. Anyway enough talking here is a video of it in action:
- A game class that can send messages to the desired parts of the game and deal with keeping score and stopping and starting play.
- Shadow Mapping for the ball as it is hard to visualise depth at the moment.
- Mouse Picking to allow you to use the mouse to aim your shot.
- Animation to allow the use of a full character model instead of a racquet
Well there is still lots to be done and most of these things are pretty large pieces of functionality, I'm hoping to get at least one thing done very shortly as I seem to be on a roll at the moment.