I am getting VERY frustrated w/ sparky's collision. First I find that I'm getting stuck on the floor when using sliding collision. I slide perfectly on most walls, the ceiling, but usually when I hit floors I just stick and don't slide. So then I realize that I'm using sc_SetupObject() for my map when I should use sc_SetupComplexObject() instead. So I change it, but of course it still doesn't work. Only this time it
really doesn't work. Like, I go right through walls and slide on invisible walls and occasionally just get stuck in the middle of nowhere. If I turn on object bounds then there are white lines EVERYWHERE, even where there are clearly no polygons. My code looks fine, but I'll post the collision stuff anyway:
SC_StartCollision( );
SC_SetupComplexObject( MapObj, 0, 10 );
while ( LoopGDK( ) )
{
if ( SC_SphereSlide( MapObj, OldPos.x, OldPos.y, OldPos.z, NewPos.x, NewPos.y, NewPos.z, 1.0f, 0 ) )
dbPositionCamera( SC_GetCollisionSlideX( ), SC_GetCollisionSlideY( ), SC_GetCollisionSlideZ( ) );
}
Obviously that code won't compile but like I said it's only the collision stuff. So is it just some stupid mistake that I'm missing?