Ok i used a test code
//Header
#include "DarkGDK.h"
//Must be included as loads the void
void DarkGDK ( void )
{
//Turn on sync rate and set maximum fps to 60
dbSyncOn( );
dbSyncRate( 60 );
//Switches off lights
dbSetObjectLight( 1, 0 );
//Setting up camera
dbPositionCamera ( 512, 45, -512 );
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;
while ( LoopGDK ( ) )
{
//This needs to be changed want physics for moving based on thruster speed global variable of thrusters would be set
//dbControlCameraUsingArrowKeys ( 0, 5.0f, 0.3f )
//Rotates the Camera when moving the mouse
fCameraAngleX = dbWrapValue (fCameraAngleY + dbMouseMoveY () * 0.4f );
fCameraAngleY = dbWrapValue (fCameraAngleX + dbMouseMoveY () * 0.4f );
dbXRotateCamera ( fCameraAngleX);
dbYRotateCamera ( fCameraAngleY);
dbSync( );
return;
}
Just need to know which area can i set my global variables and a bit of advice; i want to set a global variable of thruster this will be a speed that is less than 100 but greater than 20 at all times and it can be manipulated by q increasing this and a decreasing this remaining capped at 20 to 100. This will then be the speed of the camera moving and the mouse will control direction as opposed to
dbControlCameraUsingArrowKeys
Please any help greatly appreciated
"Face it, if crime didnt pay there would be very few criminals."
Laughton Lewis Burdock