Ok, I've set down a scene using DirectX 8 object library. I've made some objects, and the movement is done by moving the camera view and rendering the scene.
How can I detect the collisions ? (where the camera is about to hit an object)
Printable View
Ok, I've set down a scene using DirectX 8 object library. I've made some objects, and the movement is done by moving the camera view and rendering the scene.
How can I detect the collisions ? (where the camera is about to hit an object)
The easiest way is a bounding box. Make a box that is the estimated size of your model, and then put the camera near the top. However, don't render this box. Use it to check for collision. There are several routines out there, and I regret that I can't give you one. You might want to do a google.
Thanks for the help in the two threads! :)