Archived

This topic is now archived and is closed to further replies.

bsp style collision detection in octree

This topic is 5149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i read about how collision detections are done using Quake BSP. Baiscally there are "traceRay", "traceSphere" and "traceBox" functions. I understood almost most of it... except the "traceBox" but now i am wondering how can i implement the same techniques in octree. I my octree for each nodes there is a m_childNodes[8]. So , to check whether a line intersects the childnodes or not... and if they do then which nodes they intersect should be pretty easy. But how do i do the sphere intersection and box intersection along a trace-line in octree... so the possiblities of a sphere hitting the child nodes while passing through a line is more and pretty complex to code. Is there any "good" application oriented tuts or documents covering how to do collision detection using octree ?

Share this post


Link to post
Share on other sites