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

GizmoViewcube Side Selection Orientation Bug #2275

Open
julianneatpencil opened this issue Dec 17, 2024 · 0 comments
Open

GizmoViewcube Side Selection Orientation Bug #2275

julianneatpencil opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@julianneatpencil
Copy link

I'm using the most up to date version of drei. I was also able to replicate this in the storybook at: https://drei.pmnd.rs/?path=/docs/gizmos-gizmohelper--docs

Problem description:

The GizmoHelper has a weird glitch where if I select the top of the cube (or the lines with dots controller) it will not always correctly go to the top view square to the bottom, but instead at a weird angle. If you click it again, it will sometimes correct.

Relevant code:

Storybook code:

{
  name: 'Cube',
  render: args => <GizmoHelperScene1 {...args} />
} satisfies Story

Suggested solution:

the cube should always orient such that the text of the selected side is readable, and the cube is square to the viewport window.

Here is a video of what I mean:
https://github.com/user-attachments/assets/b9159b77-496f-4f8f-9222-3891b734d8fb

@julianneatpencil julianneatpencil added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant