Search code examples
camerathree.jscoordinate-systems

Three.js rotate camera local coord system based on lookAt vector


It appears that the camera in three.js is oriented on a coordinate system that is orthogonal to the global coordinate system. Is it possible to rotate the camera about its local coordinate system defined by its lookAt vector?


Solution

  • This should work:

    camera.rotateY( angle );