help ping pong game

Show what you made with Bullet Physics SDK: Games, Demos, Integrations with a graphics engine, modeler or any other application
sanjuda
Posts: 7
Joined: Tue Jul 14, 2009 10:03 am

help ping pong game

Post by sanjuda »

Hi,
I've to setup a simple(?) ping pong game.
The ball should be a dynamic body that can bounce on the table (static body) and on the paddles (kinematic bodies) and perhaps a net (soft body).
The game must restart when the ball fall out of the table or goes too far away.
In the first version the system must play autonomously with simple prewired script then they should be controlled by humans
or by an external program (probably written in c++ or matlab and using some learning algorithm)


My questions are:
what kind of control should i use for the paddles? I've to implement an action interface? or use motion states? or ?

how can I predict the direction of the ball to controll the paddle in the base algorithm? can I use a simulated step and then go back?

can i also check the result of an action before of executing it?

thanks