Search Unity

[Q] Utility function to convert 3x3 rotation matrix to angles?

Discussion in 'Editor & General Support' started by Partomo, Dec 21, 2013.

  1. Partomo

    Partomo

    Joined:
    Oct 7, 2013
    Posts:
    17
    Hi,

    Are there utility functions in Unity to go straight from a 3x3 rotation matrix to rotation angles around x, y and z axes? Or do I need to program these myself?

    Any help greatly appreciated. A code sample would be great.

    Regards,


    Tom
     
  2. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
  3. Partomo

    Partomo

    Joined:
    Oct 7, 2013
    Posts:
    17