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

feat: support reversing horizontal and vertical orbit separately #278

Closed
wants to merge 1 commit into from

Conversation

boweihan
Copy link
Contributor

@boweihan boweihan commented Aug 23, 2023

Closing in favor of #280

Why

I'm trying to support drag controls that are different from what OrbitControls ships out of the box. The horizontal drag behaviour is what I want, but the vertical is inverted. Currently, we only have reverseOrbit, which enables the vertical drag behaviour that I want but inverts the horizontal as well.

reverseHorizontalOrbit is an API that enables inverting just the horizontal orbit direction.
reverseVerticalOrbit is an API that enables inverting just the vertical orbit direction.

What

update rotateLeft and rotateRight functions in OrbitControls to reflect new API.

Checklist

  • Ready to be merged

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 88e7d0b:

Sandbox Source
Vanilla Configuration

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.

1 participant