I have some questions regarding Set and clone in Three.js. I am attempting to create a scene where a sphere moves along the x-axis and the camera follows the movement using lookAt. I tried replicating an example from a book on learning Three.js, however, without using the clone method, my scene behaved the same way but I couldn't see the sphere. By using the clone method, I was able to see the sphere. Can someone please explain why this happens?
Here are the two different code snippets:
sphere.position.copy(new THREE.Vector3(x,10,0));
sphere.position.set(new THREE.Vector3(x,10,0));
The first one displays the sphere, while the second one does not :S