The best way to do it, is something like this:
dbPositionCamera(0, 0, 70);
dbPointCamera(0, 0, 0);
Then with your planes you will do something like this:
dbMakeObjectPlane(1, 20, 20);
dbSetObjectToCameraOrientation(1);
Thats a starting point, then to move the object you can use db object position, but don't use the Z coordinate. Heres a sample program:
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbAutoCamOff();
dbPositionCamera(0, 0, 150);
dbPointCamera(0, 0, 0);
//this is the variable to tell the program which direction to move the plane
//if it's 0, it moves it down, if it's 1, it moves it up, this will be on a timer
//so if the timer variable hits 50, it switches directions.
int direction=0;
int timer=0;
dbMakeObjectPlane(1, 20, 20);
dbSetObjectToCameraOrientation(1);
// now we come to our main loop, we call LoopGDK so some internal
// work can be carried out by the GDK
while ( LoopGDK ( ) )
{
//increase the timer
timer++;
if(timer==50)
{
if(direction==0)
{direction=1;
}
else if(direction==1)
{
direction=0;
}
timer=0;
}
//move the plane
if(direction==0)
{
dbPositionObject(1, dbObjectPositionX(1), dbObjectPositionY(1)-1, 0);
}
else if(direction==1)
{
dbPositionObject(1, dbObjectPositionX(1), dbObjectPositionY(1)+1, 0);
}
dbSync ( );
}
// and now everything is ready to return back to Windows
return;
}