Advertisement

q3 bsp collision problems

Started by June 09, 2002 02:54 PM
-1 comments, last by Rainmaker 22 years, 8 months ago
Hey, I am working on an engine (heh, who isnt) that uses the q3 bsp format. I managed to stumble upon gametutorials.com''s lovely tutorials and followed em closely, but skipped the lightmap. Well then I decided to add collision detection. Now I know that the q3bsp format uses brushes to define the collision, but the information out there is just too skimpy to really use them, considering that I can just do a poly by poly check. So I wrote a function that calculates the new camera position, grabs the leaf the new camera position is in, and tests for collisions (poly vs sphere). If there are collisions, then it adds the pushbacks to the new position and sets the camera position. Well, that works great- for a little over half of the polys. The rest do not work. Why, I do not know. My collision code can be found at http://members.cox.net/frazee/collision.txt. Any ideas? Thx! L8r, The Rainmaker

This topic is closed to new replies.

Advertisement