How to ROTATE a camera?

I’m a newer for THREE.js,and also a newer for 3d engine.

I recently found that,the rotate method of camera disappeared,
so my old codes don’t work now,
I found a new method but not exactly know how to use it,

so,How to rotate a camera,by degree or radius,for now.

thanks a lot.

nice to meet everyone here,it’s such a perfect engine,
but there’re just very few documents,articles or courses in Chinese,
I’m doing some translate works, and start writing an introduce,
any suggestion will be helpful.
thanks again.

Author: Fantashit

1 thought on “How to ROTATE a camera?

  1. If you’re talking about the removal of what you need to do now is camera.lookAt( scene.position ) or any other point you want the camera to look at in the render loop.

    Otherwise, if it’s just rotating the camera, you can easily do camera.rotate.y = 90 * Math.PI / 180. Math.PI / 180 converts a degrees into radians.

Comments are closed.