Can i switch X Y Z in a quaternion?

前端 未结 4 1724
忘掉有多难
忘掉有多难 2021-02-08 14:28

i have a coordinate system where the Y axis is UP. I need to convert it to a coordinate system where Z is UP. I have the rotations stored in quaternions, so my question is : if

4条回答
  •  滥情空心
    2021-02-08 14:32

    Try : Quaternion rotation = new Quaternion(X,Z,Y, -W); //i had to swap Z and Y due to

提交回复
热议问题