Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
135 stars 2 forks source link

Rotate objects around the plane normal when in UI aligned view #1229

Open Frooxius opened 8 months ago

Frooxius commented 8 months ago

Is your feature request related to a problem? Please describe.

UI aligned mode is useful for working with inspectors, ProtoFlux and so on, because it "flattens" the interactions to a 2D plane.

Currently rotations still happen in 3D space however, which makes things un-align from the plane. E.g. when trying to rotate a node or relay.

Describe the solution you'd like

By default, items should be rotated around the normal of the aligned plane - they will essentially rotate in "2D" of that plane. This will make interactions and organizing items in this mode easier to do.

We'll still have ability to rotate them in 3D space, possibly with holding a key.

Describe alternatives you've considered

We can also keep the default and use a key to rotate them in 2D view, but that requires the user knowing the key and the 2D rotation might be more common.

Additional Context

No response

JackTheFoxOtter commented 8 months ago

You can currently move object positions to your aligned plane by clicking your mouse. I think in a similar way a shortcut to also adjust the rotation of the object to your aligned view would make sense. Otherwise you'll have to fumble with the 3D rotation until you get it close enough to axis align it. (Especially when you have ProtoFlux nodes that are rotated away from your camera)

shiftyscales commented 8 months ago

That does raise an interesting thought, @JackTheFoxOtter - currently using the click to align to the plane will only orient in a single orientation (y-up).

It'd be good if it also aligned to the nearest axis similar to what that similar function does in 3D space when not UI-focused.

This has come up before when trying to align photos taken in portrait orientation, or placing nodes in orientations other than directly upright (which has become a fairly staple feature of community-made tools for aligning nodes onto a grid/plane.)

epicEaston197 commented 8 months ago

I've had a mod that did exactly what shifty said above and it's really nice to have