PDA

View Full Version : Bouncing ball in a rotating cube



ffkiller
03-04-2003, 06:34 AM
i want to write a program that shows a ball bouncing in a rotating cube. the cube rotates around the x-axis as well as the y-axis simultaneously. but i've no idea how to detect the collision and change the ball speed accordingly after collision. Can anybody offer some help?

wsalivar
03-05-2003, 10:34 AM
There is a tutorial on collision detection at this site.
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=30