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

Rotation axes are not hoverable/selectable when camera look vector is in-plane with the arc #74

Open
Aeledfyr opened this issue Jul 24, 2024 · 1 comment

Comments

@Aeledfyr
Copy link

Aeledfyr commented Jul 24, 2024

Tested in the web demo, but also occurs in transform-gizmo-egui 0.3.0.

The selectable area of the arc-based rotation controls appears to depend on the angle from the camera; when the arc is in-plane with the camera's look vector, the selectable area is effectively zero. (That is, when the arc appears as a straight line in the view.)

Example when the arc is in-plane, where it doesn't recognize hover:
rotation gizmo in-plane with the camera, with an arc hovered but not highlighted

Example when the arc is slightly out-of-plane, where selection does work:
rotation gizmo slightly out-of-plane with the camera, with an arc hovered and also highlighted

Note that I'm testing this on a high-dpi display, so that may affect the minimum width of the arc, but it shouldn't influence how the width changes as the camera angle changes.

@urholaukkarinen
Copy link
Owner

The current rotation arc picking implementation is a bit poor and does not work properly with steep angles. I'd like to re-implement it at some point

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

No branches or pull requests

2 participants