Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个节点,我只知道其中一个的旋转。
我想将节点 1 的旋转应用到节点 2,但将一个轴归零(用欧拉术语)。
如何?
没关系,我想通了。
例如对于 x 轴:
double xRot = -(myQuat.ToEuler().x) Quat qDiff = Quat(sin(xRot / 2.0), 0, 0, cos(xRot / 2.0)).Normalize() Quat myQuatZeroX = myQuat * qDiff