Tesla Graphics Engine Documentation (January 2012)
LookAt Method (position, target, worldUp)
TeslaTesla.MathQuaternionLookAt(Vector3, Vector3, Vector3)
Creates a rotation quaternion where the object is facing the target along its z axis. If your object's "forward" facing is down -Z, then the object will correctly face the target.
Declaration Syntax
C#
public static Quaternion LookAt(
	Vector3 position,
	Vector3 target,
	Vector3 worldUp
)
Parameters
position (Vector3)
Position of object
target (Vector3)
Position of target
worldUp (Vector3)
World yAxis vector
Return Value
Resulting rotation quaternion

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)