Ninja Library - Camera Function

njRotateCameraPositionZ

Rotates camera position around local Z axis

FORMAT

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

PARAMETER

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

RETURN

None

DESCRIPTION

Rotates camera position around local Z axis.

EXAMPLE

Camera is at (0, 0, 3000) and facing (0, 0, -1) direction. 
The following leaves visual axis as is and rotates only position 
by 90 degrees around Z axis.

NJS_CAMERA c;
njInitCamera(&c);
njTranslateCameraPosition(&c, 0.f, 0.f, 3000.f);
njRotateCameraPositionZ(&c, NJM_DEG_ANG(90));
njSetCamera(&c);

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