-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Allow arc rotate auto rotation to rotate to a certain alpha value #12204
Comments
@RaananW could you clarify this issue with more details and can I work on this issue? |
@TheCrowd - Of course! Thank you :-) The arc rotate camera has an auto-rotate behavior. the auto rotate behavior rotates constantly until stopped (for example by a mouse input like a click or a drag). This feature should allow setting a target alpha that will act as a goal for the auto-rotate behavior. the auto-rotate will stop rotating when reaching this alpha value. (Note that I originally wrote beta, which actually needed to be alpha. corrected all over). |
@RaananW Not sure if I understand this correctly, so the goal is achieved, further input won't trigger any rotate behavior? |
no - if you drag and change the alpha, the alpha should be animated back to the predefined alpha. It's quite straightforward - if alpha is not the predefined alpha (within an epsilon), run the auto-rotate algorithm. If it's === defined alpha, don't rotate until user input was provided. |
@RaananW Thanks for explaining, I will have a try |
* add target alpha to auto rotate behavior * code clean * code refactoring * import from path
Closed by #12429 |
Add an optional target alpha value to the auto rotate behavior. The behavior will stop when reaching this beta value.
The text was updated successfully, but these errors were encountered: