*c | Pointer to camera structure |
x | X coordinate of point to which the visual axis should point |
y | Y coordinate of point to which the visual axis should point |
z | Z coordinate of point to which the visual axis should point |
Camera is at (500, 500, 500) and faces in (0, 0, -1) direction. The following directs visual axis to (0, 0, 0). NJS_CAMERA c; njInitCamera(&c); njTranslateCameraPosition(&c, 500.f, 500.f, 500.f); njjPointCameraInterest(&c, 0.f, 0.f, 0.f); njSetCamera(&c);