zooming camera in threeJS without trackball controls or other camera control library

后端 未结 2 397
天命终不由人
天命终不由人 2021-02-04 11:10

I\'m trying to use threeJS to control a camera in my scene. I currently have the camera set up to orbit in a circle around my object using the left and right keys on my keyboard

2条回答
  •  甜味超标
    2021-02-04 11:24

    From r69 you can now use camera.zoom:

    camera.zoom = zoomFactor;
    camera.updateProjectionMatrix();
    

提交回复
热议问题