Syntax:
LookAt(float x, float y, float z)
Purpose:
Changes the direction vector of a camera to look at a specific point in world space.
Parameters:
x, y, z - The point to look at.
Returned value(s):
None
Application:
VECTOR3 v
v = mesh1.GetPosition(TRUE)
cam1.LookAt(v.x,v.y,v.z)
Additional Info:
Orientation of the camera in regards to the Y axis is unaffected by this command. If your view of the word was upside down before this command it will still be upside down looking at the specific point.
|