Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Quaternion From To Function

Discussion in 'Scripting' started by Nims, Feb 5, 2015.

  1. Nims

    Nims

    Joined:
    Nov 11, 2013
    Posts:
    86
    Looking to implement this kind of function:
    public static Quaternion FromToRotation(Quaternion fromQuaternion, Quaternion toQuaternion );
    Creates a rotation which rotates from fromQuaternion to toQuaternion.

    Help would be appreciated.
     
  2. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    7,545
    Nims likes this.
unityunity