Quote: "
dbRotateCamera( 0, dbCameraAngleX(0) - dbMouseMoveY(), dbCameraAngleY(0) + dbMouseMoveX(), dbCameraAngleZ(0) ) ;
Perfect, just what I wanted. I set up camera modes on num buttons 1, 2 and 3, added the code into 3's stratum and tried it. It was a bit fast but ill adjust it some how after I’ve added in the left click code.
Just incase your wondering, I’m trying to make a camera mode like World of Warcraft's perspective adjustment where you click left and move the mouse to orbit the characters head. I want it to compliment my 3RD person prospective and a RTS style view to go with my unique battle system which I can’t talk about.
"
I just checked this code and to work it in the way i wanted the code must be this:
float MouseMovX = dbMouseMoveX ( ), MouseMovY = dbMouseMoveY ( ) ;
if ( MouseClick == 2 )
{
dbRotateCamera ( 0, dbCameraAngleX ( 0 ) + MouseMovY, dbCameraAngleY ( 0 ) + MouseMovX, dbCameraAngleZ ( 0 ) ) ;
}
Not the above quoted code.