Reset camera using OrbitControls.js

后端 未结 3 1867
傲寒
傲寒 2021-01-01 19:55

I\'m using OrbitControls.js to allow mouse interaction. I\'m adding a button into the scene that allows to \"reset\" the camera to it\'s state where it was before any mouse

3条回答
  •  遥遥无期
    2021-01-01 20:55

    You can reset the camera when using OrbitControls like so:

    controls.reset();
    

    three.js r.71

提交回复
热议问题