Quaternion.Euler(x,y,z)含义是按照每个旋转轴以x,y,z旋转度旋转,例子:Quaternion.Euler(45,45,45)
Quaternion与Vector3的右乘操作(*)返回一个将原有向量做旋转操作后的新向量
列如:Quaternion.Euler(0,90,0)*Vector3(0.0,0.0,-10) 相当于把向量Vector3(0.0,0.0,-10)绕y轴旋转90度,得到的结果为Vector3(-10,0.0.0.0)
原文地址:https://www.cnblogs.com/Jokerlearn/p/9351010.html
时间: 2024-11-01 11:08:42