
spherical collision & rebound angles 
Guest
Status:
Posts: n/a

01252008, 01:15 PM
Here is a link to some information on collision detection in 2D. This approach should work well for pool balls if you extend it to 3D, (which is not necessarily a trivial task for someone with a weak math background).
http://www.jumbooks.com/books/Comput...l/lib0136.html Perhaps there is someone at your high school who can help you with the math issues. However, this won't help you with the rebound issues. To be frank, it sounds to me like you may have taken on a project that is beyond your current educational level. A computer program that simulates a pool game is simply a model of something that happens in the real world. If you are unable to create and understand a mathematical model of what happens in the real world, it is unlikely that you will be able to write a computer program to model it. Just in case you haven't found it on the web, here is a link to an article about the math of a billiards game: http://archive.ncsa.uiuc.edu/Classes...send/math.html But, don't give up. You may be able to learn enough on the fly to make it all work. PS: Under the stipulation that the pool balls must remain on the table, you can consider this to be a problem of circles moving in a 2D space instead of spheres moving in a 3D space. This will make the task much easier than would be the case if it were spheres moving in a 3D space, but still fairly difficult. Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm 


Guest
Status:
Posts: n/a

01262008, 09:14 PM
See algorithmancy.8kindsoffun.com/HStrig.ppt It deals with hockey puck collisions and you may find it helpful.
Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm 


Guest
Status:
Posts: n/a

01292008, 10:37 PM
Quote:
Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm 



Guest
Status:
Posts: n/a

02052008, 11:54 AM
Quote:
Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm 



Pong? 
Guest
Status:
Posts: n/a

Pong? 
02072008, 11:34 AM
A "pong" type game might be a good start  it would give you the basics of ball movement and rebounds. You could then gradually substitute a pool cue for the "paddle" and eventually move up to more complete physics.
I believe the Scratch forum has several examples to give you some ideas for a start. 


Thread Tools  
Display Modes  

