Skip to content

added X/Y sensitivity to orbitControl#2975

Merged
kjhollen merged 2 commits intoprocessing:webgl-gsoc-2018from
AidanNelson:orbit-control-update
Jun 12, 2018
Merged

added X/Y sensitivity to orbitControl#2975
kjhollen merged 2 commits intoprocessing:webgl-gsoc-2018from
AidanNelson:orbit-control-update

Conversation

@AidanNelson
Copy link
Copy Markdown
Member

@AidanNelson AidanNelson commented Jun 4, 2018

Fixes #2962.

Adds X and Y sensitivity parameters to orbitControl(), allowing user to adjust how much rotation happens per mouse movement. This also allows user to invert axis of rotation by entering a negative value. This also changes default behavior to a non-inverted y-axis (pulling the mouse down makes the camera look down).

I ended up using width/2 as the default scale factor for movement, to avoid having to hardcode this value. Sensitivity values passed in as arguments adjust based on this default scaling. The angleMode(DEGREES) bug I mentioned here is not unique to orbitControl() and the issue is here: #2965.

@kjhollen
Copy link
Copy Markdown
Member

kjhollen commented Jun 8, 2018

ugh it was the linter causing the build errors! glad you figured it out.

I think this now supersedes #2956? It inverts the axis and adds the sensitivity params.

@AidanNelson
Copy link
Copy Markdown
Member Author

@kjhollen this makes the same two changes as #2956 (uses width as scale factor for both axes and de-inverts x-axis rotation) as well as adding the sensitivity parameters.

@kjhollen kjhollen merged commit 6718ff4 into processing:webgl-gsoc-2018 Jun 12, 2018
@kjhollen
Copy link
Copy Markdown
Member

cool! okay, everything looks good here. merged into webgl-gsoc-2018 branch.

@AidanNelson AidanNelson deleted the orbit-control-update branch June 13, 2018 17:46
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

Successfully merging this pull request may close these issues.

2 participants