Ninja Library - Camera Function

njRollCameraInterest

Rotate camera visual axis around local Z axis

FORMAT

void njRollCameraInterest( *c, ang )
NJS_CAMERA *c
Angle ang

PARAMETER

 *c  Pointer to camera structure 
 ang  Rotation angle (relative value) 

RETURN

None

DESCRIPTION

Rotates the camera visual axis around the Z axis of the local coordinate system.

EXAMPLE

Camera is at (0, 0, 0) and facing (0, 0, -1) direction.  
The following leaves camera position as is and rotate only visual axis 
by 90 degrees around Z axis.
      
NJS_CAMERA c;
njInitCamera(&c);
njRollCameraInterest(&c, NJM_DEG_ANG(90));
njSetCamera(&c);

njRollCameraInterest
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999