actually you got the names right haha. Anyway it works good now except for a dll error with my system, shou and what it's doing?
#pragma comment ( lib, "DarkPhysics.lib" )
EDIT: got dlls to work, pretty simple took like 5 minutes, had to download 2, anyway when I run my problem i colored the sphere green, everthing is brown with a slight hint of red in the shape of a sphere (around the edges) whats going on (after a while EVERYTHING starts to fall because of phy update, without it theres an error though, nonetheless the static box shouldn't fall and only the dynamic sphere should.)?
Pic (you can partially see the green sphere):
EDIT 2: I even tried coloring the ground (obj 2) and nothing, its still a brownish grey (see pic) but after a while because everything falling it starts to turn blue on the outsides.
THE CODE:
#include "DarkGDK.h"
#include "DarkPhysics.h"
#include "DarkAI.h"
#include "DarkLights.h"
#include "ShaderData.h"
#pragma comment ( lib, "DarkPhysics.lib" ) //CHANGE THE NAME!
#pragma comment ( lib, "DarkAI.lib" ) //CHANGE THE NAME!
#pragma comment ( lib, "DarkLights.lib" ) //CHANGE THE NAME!
#pragma comment ( lib, "ShaderData.lib" ) //CHANGE THE NAME!
void DarkGDK ( void ) {
dbSyncOn();
dbPhyStart();
dbSyncRate(60);
dbBackdropOn();
dbAutoCamOff();
dbPositionCamera(0,0,0,-40);
dbMakeObjectSphere(1,20);
dbPositionObject(1, 0, 20, 0);
dbColorObject(1, RGB(0,255,0));
dbMakeObjectBox(2,1000,1,1000);
dbPositionObject(1,0,-1,0);
dbColorObject(2, RGB(140,15,75));
dbPhyMakeRigidBodyDynamicSphere(1);
dbPhyMakeRigidBodyStaticBox(2);
while( LoopGDK ( ) ) {
float x = dbObjectPositionX(1);
float y = dbObjectPositionY(1);
float z = dbObjectPositionZ(1);
dbPositionCamera(0,x,y-50,z);
dbRotateCamera(0,-90,0,0);
if (dbKeyState(83) == 1) {
dbPhyAddRigidBodyForce(1,0,0,5,2);
}
if (dbKeyState(84) == 1) {
dbPhyAddRigidBodyForce(1,0,0,-5,2);
}
if (dbKeyState(89) == 1) {
dbPhyAddRigidBodyForce(1,5,0,0,2);
}
if (dbKeyState(79) == 1) {
dbPhyAddRigidBodyForce(1,-5,0,0,2);
}
dbPhyUpdate();
dbSync();
}
}
I want coke, not Pepsi!