I have school so I have to hurry, but no matter where i position my sphere it goes back to 0,0,0
#include "DarkGDK.h"
#include "DarkPhysics.h"
#include "DarkAI.h"
#include "DarkLights.h"
#include "ShaderData.h"
#pragma comment ( lib, "DarkPhysics.lib" )
#pragma comment ( lib, "DarkAI.lib" )
#pragma comment ( lib, "DarkLights.lib" )
#pragma comment ( lib, "ShaderData.lib" )
void DarkGDK ( void ) {
dbSyncOn();
dbSyncRate(60);
dbPhyStart();
dbPhySetGravity(0,-200,0);
dbBackdropOn();
dbMakeObjectSphere(1,20);
dbPhyMakeRigidBodyDynamicSphere(1);
dbColorObject(1,50);
dbPositionObject(1,0,40,40);
dbMakeObjectBox(2,100,1,100);
dbPhyMakeRigidBodyStaticBox(2);
dbTextureObject(2,1);
dbPositionObject(2,0,-40,0);
while( LoopGDK ( ) ) {
if (dbKeyState(200) == 1) {
}
if (dbKeyState(208) == 1) {
}
if (dbKeyState(203) == 1) {
}
if (dbKeyState(205) == 1) {
}
dbPositionCamera(0,0,+100,0);
dbPointCamera(0,0,-100,0);
dbInk(RGB(250,0,160),RGB(250,0,160));
dbPhyUpdate();
dbSync();
}
}
Always program as if the person maintaining your program is a psychopath that knows where you live