Manual     Reference     Scripting  
  
Scripting > Runtime Classes > Quaternion   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • Quaternion
  • All Members
  • Variables
  • eulerAngles
  • this [int index]
  • w
  • x
  • y
  • z
  • Constructors
  • Quaternion
  • Functions
  • SetFromToRotation
  • SetLookRotation
  • ToAngleAxis
  • ToString
  • Class Variables
  • identity
  • Class Functions
  • Angle
  • AngleAxis
  • Dot
  • Euler
  • FromToRotation
  • Inverse
  • Lerp
  • LookRotation
  • operator !=
  • operator *
  • operator ==
  • RotateTowards
  • Slerp

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.