webglstudio.js icon indicating copy to clipboard operation
webglstudio.js copied to clipboard

How to loop/auto-rotate a node?

Open KnightCoder opened this issue 5 years ago • 1 comments

How can I implement loop/auto-rotate on a node?

I tried adding Camera Controller however it didn't work?

I want a node to be auto-rotateable unless the user interacts with the scene. Once the user interacts (like click, key press, etc) with the scene it must stop rotation temporarily and restart once the user ends/releases the interaction with the scene.

KnightCoder avatar Apr 29 '20 16:04 KnightCoder

I noticed a transform.orbit( angle_in_deg, axis, center ) method. I even tried this but it didn't work. Will this help? If yes, how is this supposed to be used? Can you please give a short example?

KnightCoder avatar Apr 29 '20 21:04 KnightCoder