为什么 mesh.rotation.set 有效而 mesh.rotation.copy 无效?

Why does mesh.rotation.set work but mesh.rotation.copy doesn't?

如果我这样做:

mesh.position.copy(p);
mesh.rotation.copy(r);

位置会更新,但旋转不会。如果我这样做:

mesh.rotation.set(r.x, r.y, r.z);

相反,它有效。 (p 和 r 当然是 THREE.Vector3 对象。)

THREE.Object3D.rotation.copy()THREE.Euler 作为参数,而不是 THREE.Vector3.

查看源代码,了解它的作用。

three.js r.70