Greetings, I’m trying to rotate my object on the X axis to a maximum rotation and then prevent rotation but the camera is syncing oddly and making the view very jerky. The following code orders the object to rotate on the x axis, when it reaches 10 the camera should hold at 10 but instead jerks from 10 to 11. Anyone got any ideas?
// Sort the max angles on X axis rotation here!
float ObjAngThree = dbObjectAngleX ( 3 ) ;
if ( ObjAngThree <= 10 )
{
dbXRotateObject ( 3, XRoObOne ) ; // Makes the camera go up and down
}
else
{
dbRotateObject ( 3, 10, dbObjectAngleY ( 3 ), dbObjectAngleZ ( 3 ) ) ;
}
dbYRotateObject ( 3, YRoObOne ) ; // Makes the camera go side to side
dbYRotateObject ( 1, YRoObOne ) ; // Makes the camera go side to side