Tah Dah

#include "DarkSDK.h"
void DarkSDK(void){
//Values For Vector Stages
float X1, Y1, Z1, X2, Y2, Z2, X3;
float Y3, Z3, X4, Y4, Z4, X5, Y5, Z5;
float CAY, CAZ, CAX, CPX, CPY, CPZ;
//Sync Setup
dbSyncOn();
dbSyncRate(60);
//Makes Test Object
dbMakeObjectCube(1, 10.0f);
//Main Loop
while(LoopSDK()){
if(dbEscapeKey())
return;
//Gets Camera Angle
CAX = dbCameraAngleX();
CAY = dbCameraAngleY();
CAZ = dbCameraAngleZ();
//Gets Camera Position
CPX = dbCameraPositionX();
CPY = dbCameraPositionY();
CPZ = dbCameraPositionZ();
X1=dbMouseX()-320.0f;
Y1=240.0f-dbMouseY();
Z1=400.0f;
//Xrotate Vector
X2=X1;
Y2=dbCos(CAX)*Y1-dbSin(CAX)*Z1;
Z2=dbSin(CAX)*Y1+dbCos(CAX)*Z1;
//Yrotate Vector
X3=dbCos(CAY)*X2+dbSin(CAY)*Z2;
Y3=Y2;
Z3=dbCos(CAY)*Z2-dbSin(CAY)*X2;
//Zrotate Vector
X4=dbCos(CAZ)*X3-dbSin(CAZ)*Y3;
Y4=dbSin(CAZ)*X3+dbCos(CAZ)*Y3;
Z4=Z3;
//Translate Vector
X5=CPX+X4;
Y5=CPY+Y4;
Z5=CPZ+Z4;
//Positions Object
dbPositionObject(1, X5, Y5, Z5);
//Rotates Camera
if(dbUpKey()){
dbYRotateCamera(dbWrapValue(dbCameraAngleY()+1));
}
if(dbDownKey()){
dbYRotateCamera(dbWrapValue(dbCameraAngleY()-1));
}
dbSync();
}
}

Finally got dan online to help me fix up my equations. This works now

God we are good he he he

You Must First Realise Your Limitations Before You Set Your Goals