PDA

Click to See Complete Forum and Search --> : Ball Physics



flashGaul
11-15-2002, 03:39 AM
Hi There,
I am developing a pool game.
I have acheived quiet a lot in collision detection.

Now theres one prb I am facing.

When a cue ball is hit and it in turns hits another target ball on the table the target ball gets deflected by hit angle and it moves at the relevant speed(obtained from the cue ball). This far I have acheived.

The target ball is geeting deflected by the delta of the _x and _y of the target ball and the cue ball.

But now I want even the cue ball to get deflected accordingly. I am unable to deflect the cue ball at the required angle and also how much it should get deflected. How do I do it? Is there any algorithm available which I can b used here?

I shall I put in the code if required be.

thx in advance.[FONT=arial][COLOR=crimson]

swills
11-15-2002, 07:11 AM
Its a common problem. See the post below titled "Ball collision reaction " and the links within it.

swills