I am rotating my camera in 360 degrees with scene.beforeRender() function. The rotation works as expected. I want the rotation to be stopped if there is a mouse click button triggered. How do I achieve this? Also the rotation should play again after 10 seconds of inactive mouse click.
You can use pointer interaction to stop rotating after a mouse click:
Use a window.setTimeout timer to restart after 10s (cancel / recreate the timer if you detect a mouse click before the 10s delay).
1 Like
How did you implement the action to stop the animation of the image with the mouse? thanks