Original Post
can someone write me a few lines of code showing how to do collision detection using dot products and cross products. the collision detection like in the book open gl game programming. i want to write my own collision detection functions but can''t figure out exactly what i need to do. please? 