*c | Pointer to camera structure |
ang | Rotation angle (relative value) |
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);