Ninja Library - Camera Function

njTranslateCameraPosition

Moves camera position along X, Y, Z axes

FORMAT

void njTranslateCameraPosition( *c, x, y, z )
NJS_CAMERA *c
Float x
Float y
Float z

PARAMETER

 *c  Pointer to camera structure 
 x  Amount of movement along X axis 
 y  Amount of movement along Y axis 
 z  Amount of movement along Z axis 

RETURN

None

DESCRIPTION

Moves the camera position by a relative amount along the X, Y, Z axes.

EXAMPLE

Camera is at (0, 0, 0) and faces in (0, 0, -1) direction. 
The following leaves visual axis as is and move position by 100, 200, 
and 300 along X, Y, and Z axes respectively.

NJS_CAMERA c;
njInitCamera(&c);
njTranslateCameraPosition(&c, 100.f, 200.f, 300.f);
njSetCamera(&c);

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