Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KnightCoder opened this issue Apr 29, 2020 · 1 comment
Open

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

KnightCoder opened this issue Apr 29, 2020 · 1 comment

Comments

@KnightCoder
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant