Errors here, test it out for yourselves and you'll see, I don't understand the dbPhyUpdate command, could you guys help?
I was just trying to test out fluids.
#include "DarkGDK.h"
#include "DarkPhysics.h"
#include "DarkAI.h"
#include "DarkLights.h"
#include "ShaderData.h"
#define _DARK_PHYSICS_H_
void DarkGDK ( void ) {
dbSyncOn();
dbPhyStart();
dbSyncRate(60);
dbBackdropOn();
dbAutoCamOff();
dbPositionCamera(0,0,25,-150);
dbMakeObjectBox(1,50,50,5);
dbMakeObjectBox(2,50,50,5);
dbMakeObjectBox(3,5,50,50);
dbMakeObjectBox(4,5,50,50);
dbMakeObjectBox(5,50,5,50);
dbPositionObject(1,0,0,-50);
dbPositionObject(2,0,0,0);
dbPositionObject(3,-25,0,0);
dbPositionObject(4,25,0,0);
dbPhyMakeRigidBodyStaticBox(1);
dbPhyMakeRigidBodyStaticBox(2);
dbPhyMakeRigidBodyStaticBox(3);
dbPhyMakeRigidBodyStaticBox(4);
dbPhyMakeFluid(1);
dbPhySetFluidPosition(1,12,100,-25);
dbPhyBuildFluid(1);
while( LoopGDK ( ) ) {
dbPhyUpdate();
dbSync();
}
}
I want coke, not Pepsi!