Thread: Pool Game
View Single Post
Stage 2: bounce off cushions
Old
davidghemer
Member
 
Status: Offline
Posts: 38
Join Date: Nov 2011
Default Stage 2: bounce off cushions - 12-01-2011, 01:01 AM

I've updated the code so that balls will now bounce off of the cushions using dummy objects as markers.

Also when the cue ball hits the one ball they move in fairly realistic manner - not perfect but you can plan straight shots or cut shots if you clip the ball.

Still thinking about how to bounce the balls off the cushions in a reasonable way. I need to know the angle that the ball hits the cushion at, but not sure on this right now. Any ideas would be welcome.
Attached Files
File Type: a2w PoolGame_Stage2.a2w (636.5 KB, 81 views)


For video tutorials on programming in Alice 2.2 check out my YouTube channel

http://www.youtube.com/user/drdave785

Also check out my Programming in Alice blog at

http://programminginalice.com
   
Reply With Quote