C3DCamera::Rotate

Top  Previous  Next

Syntax:

 

Rotate(float  yaw, float  pitch, float  roll)

 

Purpose:

Rotate the camera about all three axis allowing for 6 degrees of freedom (6DOF)

 

Parameters:
yaw - The angle to rotate along the Y axis.
pitch - The angle to rotate along the X axis.
roll - The angle to rotate along the Z axis.

 

Returned value(s):
None

 

Application:

IF KeyDown(DIK_RIGHT) then cam1.Rotate(1*.01745 * fAdjust,0,0)

 

Additional Info:

Angles are expressed in radians and are measured clockwise when looking along the rotation axis toward the origin.