*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 |
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);