PathEngine home | previous: | next: |
Points the camera at a target. Can be used for a chase camera.
void lookAt(float targetX, float targetY, float targetZ, float angle, float elevation, float distance); |
targetX | X coordinate for the world position to look at. | ||
targetY | Y coordinate for the world position to look at. | ||
targetZ | Z coordinate for the world position to look at. | ||
angle |
First component of camera orientation, specifying an angle of rotation around the Z axis. This angle is in radians, zero puts the camera along the positive Y axis and increasing values rotate the camera clockwise around the target (as viewed from above). | ||
elevation |
Second component of camera orientation, specifying an angle of elevation. This angle is in radians, zero puts the camera horizontal, increasing values raise the camera and decreasing values lower the camera. | ||
distance | Distance of the camera from the target. |
void lookAt(float targetX, float targetY, float targetZ, float angle, float elevation, float distance); |
void lookAt(float targetX, float targetY, float targetZ, float angle, float elevation, float distance); |
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |