Quote: "Insert #pragma once to the first line in the SC_Collision.h sparky header. I think that will help."
Well, that's a very nice solution but it didn't work for me (maybe I'm special
)...
I extracted what I was looking for though... If you are doing an FPS, this code might work for you...
//sliding collision
float oldx = dbCameraPositionX(0);
float oldy = dbCameraPositionY(0);
float oldz = dbCameraPositionZ(0);
{db whatever you want here...}
float x = dbCameraPositionX(0);
float y = dbCameraPositionY(0);
float z = dbCameraPositionZ(0);
//little spheres collide with all (0)
int collide = SC_SphereSlide( 0, oldx,oldy,oldz, x,y,z, 2.0f, 3 );
if ( collide > 0 )
{
dbPositionCamera( 0, SC_GetCollisionSlideX(),SC_GetCollisionSlideY(),SC_GetCollisionSlideZ() );
}
SC_UpdateObject( 3 );
Good Luck!
~~It's not who you are underneath, but what you do that defines you.~~