Quaternion.SetFromToRotation Manual     Reference     Scripting  
Scripting > Runtime Classes > Quaternion
Quaternion.SetFromToRotation

function SetFromToRotation (fromDirection : Vector3, toDirection : Vector3) : void

Description

Creates a rotation which rotates from fromDirection to toDirection.