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 )
Return Value
Resulting rotation quaternion
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)