I'm in need of some help with collision detection. I've decided to use AABBs as they seem to be the simplest method of handling collision detections (i'm using cubes exclusively for my program so it's the easiest choice by far). I have an understanding of how collision detection works and some of the maths involved, but when it comes to implementing it in code I get stumped. I understand the collision detection functions etc, but I have no clue how to add the necessary vectors etc into the drawing function for drawing a cube.
I have an idea that glVertex3D(x,y,z) should have an array in it for each co-ordinate in the vertex, but that's about as far as I can understand.
I've spent the past week googling it to death and going over the famous red book as well as the openGL game programming book but with no luck as they all include a vector class which is too complicated as I need to be able to explain my code, or only the collision detection code itself with no reference to how to include it in the shapes drawn.
I might be a bit cheeky and presumptious, but does anyone know of a simple (like a 5 year old) explanation of how to add it into the drawing routines or can show some sort of code (pseudo or otherwise) that will explain it?
Many thanks











