Manual     Reference     Scripting  
  
Scripting > Runtime Classes > Quaternion   

Quaternion.SetLookRotation  

function SetLookRotation (view : Vector3, up : Vector3 = Vector3.up) : void

Description

Creates a rotation that looks along forward with the the head upwards along upwards

Logs an error if the forward direction is zero.