Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Bouncing ball in a rotating cube

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    3

    Bouncing ball in a rotating cube

    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?

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    8

    Re: Bouncing ball in a rotating cube

    There is a tutorial on collision detection at this site.
    http://nehe.gamedev.net/data/lessons....asp?lesson=30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •