Thanks for all your help WLGfx.
Here is what i have:
while ( LoopGDK ( ) )
{
// display some text on screen
dbText ( 0, 0, "Intel Compo Entry By Iain McCluskey and Paul Browne Copyright 2011" );
// move the camera forwards
if ( dbUpKey ( ) )
dbMoveObject(2,20);
// move the camera backwards
if ( dbDownKey ( ) )
dbMoveObject(2,-20);
if ( dbLeftKey ( ) )
//dbMoveObjectLeft ( 2, 10);
dbTurnObjectLeft (2,1);
if ( dbRightKey ( ) )
//dbMoveObjectRight ( 2, 10);
dbTurnObjectRight (2,1);
dbPositionCamera(dbObjectPositionX(2),dbObjectPositionY(2),dbObjectPositionZ(2));
dbSetCameraToObjectOrientation(2);
dbYRotateCamera( dbWrapValue( dbCameraAngleY() - (0.4 * 4.0) ) );
dbXRotateCamera( dbCameraAngleX() + 10 );
dbMoveCamera(-170);
// here we make a call to update the contents of the screen
dbSync ( );
}
So my next question is how can i make the camera move more smoothly, like a slight delay in it matching the objects angle??.