*c | Pointer to camera structure |
ax | Rotation angle around X axis |
ay | Rotation angle around Y axis |
az | Rotation angle around Z axis |
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, 120, and 150 degrees around X, Y, and Z axes respectively. NJS_CAMERA c; njInitCamera(&c); njTranslateCameraPosition(&c, 0.f, 0.f, 3000.f); njRotateCameraPositionXYZ(&c, NJM_DEG_ANG(90), NJM_DEG_ANG(120), NJM_DEG_ANG(150)); njSetCamera(&c);