Ok, for the most part is seems to be working now. Thank You. But for the life of me I cant get fluid to draw, does it now work in GDK? After making a simple static floor and all I use this code:
dbPhyMakeFluid(2);
dbPhySetFluidPosition(2,0,10,0);
dbPhyBuildFluid(2);
And it does nothing at all. dbPhyGetFluidExist(2) returns true. And are there information documents that explain and give tutorials like there are for DBP (the information file in the GDK folder is identicle to the one that comes with DBP). Although the refrence file coincides with the GDK rather than DBP. Thank You.
EDIT:
I was wrong, it worked for a little bit and then decided to stop working <,<. Now when i compile someting that has dbPhyStart() in it it compiles with an error:
Quote: "
1>------ Build started: Project: Physics Testing, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>Linking...
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyEnd(void)" (?dbPhyEnd@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyUpdate(void)" (?dbPhyUpdate@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbPhyStart(void)" (?dbPhyStart@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Debug\Physics Testing.exe : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://c:\Users\Jake\Documents\Visual Studio 2008\Projects\Physics Testing\Physics Testing\Debug\BuildLog.htm"
1>Physics Testing - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
"
This is the code that generated that error:
#include "DarkGDK.h"
#include "DarkPhysics.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbRandomize ( dbTimer ( ) );
dbPhyStart();
while ( LoopGDK ( ) )
{
dbPhyUpdate();
dbSync ( );
}
dbPhyEnd();
return;
}
It works like a charm if you comment out the 3 DP functions.