-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
feature: documentation update #223
Merged
+306
−15
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1b03026
feature: documentation update
klich3 9b2e374
feature: documentation
klich3 34dbdad
feature: docs corrections
klich3 c96747d
feature: edited
klich3 2b856bc
feature: orthographic corrections
klich3 f27ec46
bugfix: omitting sample
klich3 b6dd8c8
feature: corrections & added new list of samples / tips on readme doc.
klich3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this code example for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when you rotate to the side
.azimuthAngle
is summing0 -> 360º -> 720º -> 1080º + 45º = 1125º
now if you use
rotateTo()
camera spinning back all 4x right? okey if you use this code.azimuthAngle = .azimuthAngle % (360 * THREE.MathUtils.DEG2RAD)
you are reset 4x turns to 0 + 45ºnow if you execute
rotateTo()
camera rotate only -45º to 0There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right.
However, I think, the code example doesn't solve the situation, because
azi
is just a variable (also it should not be aconst
?).Maybe the example could be omitted at this time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm yes you right, ok no problem I change it, omitting this sample
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe can add new parameter with this function
.azimuthAbsoluteAngle
what you thing about it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for understanding.
Thanks for your suggestion.
I think It can be done easily with
THREE.MathUtils.euclideanModulo
.Maybe it should be in user-land rather than a part of camera-controls?
e.g.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think people do not know the existence of many of the functions, which integrates in Three for that reason to be confused when using the plugin. Or they just do not understand the hierarchy of elements. You should put plugin for user Mid / Pro Level XD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for considering the users😊
Although we already have
cameraControls.normalizeRotations()
method to fix, We could add an explanation of how to normalize the accumulated angle on the user's side withTHREE.MathUtils.euclideanModulo
.Maybe like the below:
If you need a normalized accumulated azimuth angle (between 0 and 360 deg), compute with
THREE.MathUtils.euclideanModulo
.e.g.
However, regarding adding the helper on the library side, That must be done with another github issue or PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are welcome :)