   I cant get Collisions to Work in my Dark GDK code for VC++
  I am trying to set collision on this 3d Object with a 3d cube and with the level but the the player goes through the level and the cube,can somebody tell me where i am missing,***************************************************************Main.cpp***************************************************************void DarkGDK ( void ){// turn on sync rate and set maximum rate to 60 fpsdbSyncOn   ( );dbSyncRate ( 60 );dbPrint ( "Please wait loading model..." );dbSync ( );dbSync ( );// switch to the media directory, load our world// and turn lighting offSetCurrentDirectory ( "media" );//Load PlayerLoadModel(3);    //Load levelLoadLevel(1);// load a model for our skyLoadSkBox(2);// position the cameradbPositionCamera( 434, 42, -467 );//dbAutomaticCameraCollision( 0, 2 , 1 );//Load a BoxLoadBox(4);//dbSetGlobalCollisionOn ();//dbAutomaticCameraCollision(0,2,1);// camera variablesfCameraAngleX = 0.0f;fCameraAngleY = 0.0f;gravity = -0.1f;jumptimer=1;ground=1;// our main loopwhile ( LoopGDK ( ) ){MovePlayerWithMouse(3);MovePlayerWithKeys(3);positionCameraToPlayer(3);//dbAutomaticObjectCollision ( 3, 10, 1 );// update the screendbSync ( );}// return back to windowsreturn;}***************************************************************Rentia.h***************************************************************void MovePlayerWithKeys(int Mdl ){  if (dbUpKey()==1) { dbMoveObject(Mdl,-4);}  if (dbDownKey()==1) { dbMoveObject(Mdl,4);} if (dbLeftKey()==1) { dbMoveObjectRight(Mdl,4);} if (dbRightKey()==1) { dbMoveObjectLeft(Mdl,4);}//I HAVE EVEN TRIED THE CODE IN COMMENTS BELOW /*if (dbUpKey()==1) { if (dbObjectCollision(3,4)!=1)dbMoveObject(Mdl,-4);}  if (dbDownKey()==1) { if (dbObjectCollision(3,4)!=1)dbMoveObject(Mdl,4);} if (dbLeftKey()==1) { if (dbObjectCollision(3,4)!=1)dbMoveObjectRight(Mdl,4);} if (dbRightKey()==1) { if (dbObjectCollision(3,4)!=1)dbMoveObjectLeft(Mdl,4);}*/ if (dbSpaceKey()==1 && jumptimer==0)  {dbMoveObjectUp(Mdl,2); jumptimer = 20;} if (ground == 1 && jumptimer>0) { jumptimer--;}else{}}void positionCameraToPlayer(int Mdl){x=dbObjectPositionX(Mdl);y=dbObjectPositionY(Mdl);z=dbObjectPositionZ(Mdl);a=dbObjectAngleY(Mdl);d=-65.0;h=55.0;s=50.0;dbSetCameraToFollow(x,y,z,a,d,h,s,1);}***************************************************************Load.h***************************************************************void LoadModel(int Mdl){    dbLoadObject ( "Colonel-X.X", Mdl );dbSetObjectSpecular(Mdl,0);dbPointObject(Mdl,0,0,0);dbFixObjectPivot(Mdl);dbRotateObject(Mdl,0,180,-0);dbScaleObject(Mdl,100,75,100);dbPositionObject(Mdl,434,42,-517);//dbSetShadowShadingOn(Mdl);dbLoopObject(Mdl,2497,2696);dbSetObjectSpeed(Mdl,50);dbSetObjectCollisionOn(Mdl);dbSetObjectCollisionToBoxes(Mdl);}void LoadLevel(int Lvl){dbLoadObject( "universe.dbo", Lvl );dbSetObjectLight( Lvl, 0 );}void LoadSkBox(int Lvl){    dbLoadObject( "skybox2.x", Lvl );dbSetObjectLight( Lvl, 0 );dbSetObjectTexture( Lvl, 3, 2 );dbScaleObject( Lvl, 5000, 5000, 5000 );}void LoadBox(int Mdl){dbMakeObjectCube(Mdl,50);dbLoadImage("boxtexture.jpg",1);dbTextureObject(Mdl,1);dbPositionObject(Mdl,484,42,-567);dbSetObjectCollisionOn(Mdl);dbSetObjectCollisionToBoxes(Mdl);}   
  First off im a newbie here, so take my advise with a grain of salt. The only help I can give is that im quite certain there is a Forum on 'thegamecreators' website for that Dark GDK Framework, they made that. I think you will get or have a higher chance of getting help from there.Thats all I know, good luck.   ;  Hi,i have used this a while back and i remember having to1. Set up all colliding objects first, i.e. setup collision.2. Update all collision ever frame/loopI Used to use sparky's dll but maybe things have moved on i heard that sparky's collision hs now been included in the whole GDK.Anyway just thought i'd chip in. Also, normally yo have to set a response on a collision, i.e. you move, test for a collision, if present correct position so objects are in a suitable place, i.e. no longer colliding.The gamecreator forums are a better bet, but this might be a solution, if you're new it might be an idea to work it out for yourself, but if all else fails there is the gamecreators forum.PureBlackSin   