Any good algo for a simple 3D collision detection (using 3d bounding boxes)
Hi there, I've been developing a simple 3D engine for a game, and have been pondering over the topic of game collision, searched google and found out that collision detection is not as simple as I thought, is there any good advice on where to begin with?
Thanks in advance
preview the 3d engine here
http://www.comp.nus.edu.sg/~cheefoos/3dengine.html
~Jeffrey
Thanks, I think the reason why it's smooth is mostly I din't write my own flooding/painting methods,
I used drawPolygon/fillpolygon instead of writting my own...
No Z buffer also...since I din paint myself so can't implement z buffer...
just wanted to keep it simple, and have been cracking my brains over how to do collision detection.
Most of the collision detection algo are very advanced stuff on the net.
So I've been thinking of a way to makr 2d collision detection usable in 3d, which I somehow think is non trival when I throw in rotations and stuffs....
~Jeffrey
yup, just simple convex objects only,
I was originally thinking of not doing rotations on the bounding boxes, rotating only the object within the box.
Then I realised if the floor has elevated ground, mini hills and valleys, this won't work, so the 3d bounding boxes still need rotation.
Thats where I think I'm stuck.
~Jeffrey