Jump to content
  • Advertisement

Archived

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

silvermace

Yet another Quake 3 Loader -- Collision Testing

This topic is 5577 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

hi, this is what im currently doing for my collison... find the leaf im in (camera) and test all the faces in the leaf with a bounding sphere ... heres the problem .. its not working ?! only a few (very few, 1 in 60 or 70) polygons return a collision.. im asuming the faces are stored like this
  
for( int j = face.start; j < face.nVerts + face.start; j++ )
{
     // quake 3 tris are triangle fans.. correct?

     CVector3 Tri[]={Verts[face.start],Verts[j],Verts[j+1]};
      Test(...);
            ...
}
  
any help or advice would be greatly appreciated, thanx -- a dancing person appears insane to those who cannot hear the music http://homepages.paradise.net.nz/danu/ -- Just click it

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!