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.
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
|