How to rotate the camera smoothly in the original position when the HTML button is pressed? `(If it can not be made smooth, then return it to the original condition in any way)
The button looks like this: & lt; Button type = "button" onclick = "resetcamera ();" & gt; Reset camera! & Lt; / Button & gt;
Please add the reset camera to the button here.
Thank you.
It does this immediately
Function reset camera () {camera.position.set (0,0,500); }
Comments
Post a Comment