I am trying to make a cube in my three.js scene rotate and look at a specific point in space.
Here is the code I am using:
cube.lookAt(new THREE.Vector3(0, 1, 0));
My goal with this line of code is to make the cube look upwards.
Unfortunately, it doesn't seem to be working. Can anyone provide any insight or suggestions? Here's a link to the CodePen:
https://codepen.io/arpo/pen/NaPyaN?editors=0010
Edit: Updated the pen