jagenjo / webglstudio.js

A full open source 3D graphics editor in the browser, with scene editor, coding pad, graph editor, virtual file system, and many features more.
MIT License
5.21k stars 605 forks source link

How to loop/auto-rotate a node? #52

Open KnightCoder opened 4 years ago

KnightCoder commented 4 years ago

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 commented 4 years ago

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?