Tesla Graphics Engine Documentation (January 2012)
LookAt Method (position, target, worldUp, result)
TeslaTesla.MathMatrixLookAt(Vector3%, Vector3%, Vector3%, Matrix%)
Creates a rotation matrix 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 void LookAt(
	ref Vector3 position,
	ref Vector3 target,
	ref Vector3 worldUp,
	out Matrix result
)
Parameters
position (Vector3%)
Position of object
target (Vector3%)
Position of target
worldUp (Vector3%)
World yAxis vector
result (Matrix%)
Existing matrix to hold result

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