Awesome thanks, I was trying to do something like that but couldn't get it. Here is what I ended up using:
float YRotateObject, XRotateObject;
dbYRotateObject( 2,dbObjectAngleY(2) + dbMouseMoveX()/3.0f );
dbXRotateObject( 2,dbObjectAngleX(2) + dbMouseMoveY()/3.0f );
if(dbObjectAngleX(2)>55){
dbXRotateObject( 2,55);
}
if(dbObjectAngleX(2)<-55){
dbXRotateObject( 2,-55);
}
But now I am stumped on another question, no need to make another post. I am using a sphere as the player for collision as of now, but I can't get a good way to make the sphere transparent. I tried the following and it works, but when you ALT+TAB or open another window and come back to the game, it errors out saying the object is missing. I understand why but think of a better way to do it.
Current player creation code...
dbMakeObjectSphere( 2,radius*2.0f );
dbHideObject ( 2 ); // This is the problem here I believe
dbPositionObject( 2,434,62,-500 );
SC_SetupObject( 2,0,1 );
www.Helios-Online.net