Reputation: 1983
If I do:
mesh.position.copy(p);
mesh.rotation.copy(r);
The position will update but rotation won't. If I do:
mesh.rotation.set(r.x, r.y, r.z);
instead, it works. (p and r are THREE.Vector3 objects of course.)
Upvotes: 0
Views: 37
Reputation: 104833
THREE.Object3D.rotation.copy()
takes a THREE.Euler
as an argument, not a THREE.Vector3
.
Have a look at the source code so you can see what it does.
three.js r.70
Upvotes: 1