PathEngine home previous: iTestBed::loadCameraPosition()next: iTestBed::newRenderGeometry()
Contents, API Reference, Interfaces, iTestBed, lookAt

iTestBed::lookAt()

Description

Points the camera at a target. Can be used for a chase camera.

Syntax

void lookAt(float targetX, float targetY, float targetZ, float angle, float elevation, float distance);

Parameters

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.

C# Mapping

void lookAt(float targetX, float targetY, float targetZ, float angle, float elevation, float distance);

Java Mapping

void lookAt(float targetX, float targetY, float targetZ, float angle, float elevation, float distance);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iTestBed::newRenderGeometry()