The lookAt function rotates the object to directions I dont want to.
I tried changing mesh.up vector values but couldn’t get it right.
I have sphere with arrow in it, which direction should I make the arrow point initially when creating the mesh?
The lookAt function rotates the object to directions I dont want to.
I tried changing mesh.up vector values but couldn’t get it right.
I have sphere with arrow in it, which direction should I make the arrow point initially when creating the mesh?
The box aligned along z-axis.
So its always z-axis which is pointing towards lookAt vector?
Is it possible to point Y towards it instead of Z?
Nice example btw
You need to rotate geometry first
object.geometry.rotateY(Math.PI / 2);
object.geometry.rotateZ(Math.PI / 2);