Archived

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

Yet another Quake 3 Loader -- Collision Testing

Recommended Posts

silvermace    634
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