Advertisement

Cube-Collision-Detection

Started by May 13, 2002 11:16 AM
1 comment, last by Angel_of_Death 22 years, 9 months ago
Hi! I''m new to OpenGL programming; So I started with a few simple programms; made a few tutorials... Now I play a little bit with OpenGl... Yesterday I made a simple programm: 2 Cubes are flying over the screen(I''m VERY new to OpenGl-programming... ) I have a simple collision detection for the screen-borders. But now I need a collision detection for the cubes. I don''t want to just handle the cubes as spheres... Does anybody know, how to detect collisions between 2 cubes, which are flying around in a 3D-environment...?
You won''t find any cube specific collision detection methods except for axis-aligned cubes (cubes whose that are not rotated off the x,y,z axis)

You can check out this tutorial Crashing into the new year (Gamasutra Article) which covers the basics of accurate collision detection (in 2d and 3d), then hop over to
Algorithm chart for intersection of 3D objects, and if you still stuck you could learn it later and just use ColDet, A Free 3D Collision Detection Library
Advertisement
I will try...

OK,thanks!

This topic is closed to new replies.

Advertisement