#include "DarkGDK.h"
#include "DarkPhysics.h"
void DarkGDK ( void )
{
// Setup
dbSetDir( "../" );
dbSyncOn ( );
dbSyncRate ( 60 );
dbPhyStart();
// Create ground
dbMakeObjectBox(1,50,1,50);
dbPhyMakeRigidBodyStaticBox(1);
// Create fluid
dbPhyMakeFluid(2);
dbPhySetFluidPosition(2, 0, 20,0);
dbPhyBuildFluid(2);
// Main loop
while ( LoopGDK ( ) )
{
dbPrint(dbStr(dbPhyGetFluidExist(2)));
dbControlCameraUsingArrowKeys(0,1,5);
dbPhyUpdate();
dbSync ( );
}
}
The problem is that the liquid is not being created. I think my code is okay; am I right in thinking that liquids won't work unless users graphics cards support PhysX PPU? I thought there would be a backup plan that just uses extra CPU power to get the job done.