Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 单位旋转变换_C#_Unity3d_Matrix_3d_3dsmax - Fatal编程技术网

C# 单位旋转变换

C# 单位旋转变换,c#,unity3d,matrix,3d,3dsmax,C#,Unity3d,Matrix,3d,3dsmax,众所周知,Unity使用左手、Y向上、ZXY顺序,但其他3D软件不使用。我了解Unity如何转换3dsmax旋转角度(右手、Y向上、XYZ顺序): Vector3转换器xyztozy(Vector3角度xyz) { Vector3 Righthand=新矢量3(angleXYZ.x,-angleXYZ.y,-angleXYZ.z); 四元数qx=四元数角度轴(右手的.x,向量3.右); 四元数qy=四元数角度轴(右手.y,向量3.up); 四元数qz=四元数角度轴(右手的z,矢量3向前); 四元

众所周知,Unity使用左手、Y向上、ZXY顺序,但其他3D软件不使用。我了解Unity如何转换3dsmax旋转角度(右手、Y向上、XYZ顺序):

Vector3转换器xyztozy(Vector3角度xyz)
{
Vector3 Righthand=新矢量3(angleXYZ.x,-angleXYZ.y,-angleXYZ.z);
四元数qx=四元数角度轴(右手的.x,向量3.右);
四元数qy=四元数角度轴(右手.y,向量3.up);
四元数qz=四元数角度轴(右手的z,矢量3向前);
四元数结果=qz*qy*qx;
返回result.eulerAngles;
}
但我被困在如何将Unity Euler转换为3dsmax的问题上。 感谢您的回复