Collision Detection

Hey,

was just wondering if people could suggest some ideas for good collision detection. Because i am making a good old ‘Pong’ game, and with the balls movemnet speed being greater then 1, and that it varies, it will go into the paddle. This isnt too bad with the flat part of the paddle, as while it doesnt look as good as it could, ive got it working fine. However, the main problem is with the rounded ends of the paddles, where the calculations are alot more complex and precise.

can we have a piccy of the bat/paddle :wink:

her, y dont u try out the game as it is so far, ull probally seehow amuture my current collsion detection method is :), and the need for a better one, as well as many other things which i dont have time and skill to do.

http://members.optusnet.com.au/otta2/

seems fine 2 me :smiley:

However if you wanted to do it totally accurately,
model the balls motion as the volume of a swept circle,
and the bat as a line & 2 verticies.

It is then possible to calculate the intersection
between the balls swept volume, and the bat.

You will find this pdf helpful :-

http://www.three14.demon.nl/sweptellipsoid/SweptEllipsoid.pdf

It describes the Maths behind it, and even has an implementation! (though its C not Java :()