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 void LookAt( ref Vector3 position, ref Vector3 target, ref Vector3 worldUp, out Quaternion result )
Parameters
- position (Vector3%)
- Position of object
- target (Vector3%)
- Position of target
- worldUp (Vector3%)
- World yAxis vector
- result (Quaternion%)
- Existing quaternion to hold result
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)