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.
我看了一些关于Transform 3d的描述,但我不能说我真的理解setEuler和 rotX、rotY 和 rotZ 之间的区别。 我还搜索了一些档案,但没有一个真正给我一个可以理解的答案。
有谁知道有什么区别?
它们本质上只是简写:
t.setEuler(new Vector3d(a, 0, 0))⇔ t.rotX(a) t.setEuler(new Vector3d(0, a, 0))⇔ t.rotY(a) t.setEuler(new Vector3d(0, 0, a))⇔t.rotZ(a)
t.setEuler(new Vector3d(a, 0, 0))
t.rotX(a)
t.setEuler(new Vector3d(0, a, 0))
t.rotY(a)
t.setEuler(new Vector3d(0, 0, a))
t.rotZ(a)