Open Calinou opened 2 years ago
I'm not necessarily against the idea, but I'm a bit sceptical of the use cases. For me at least, 90% of the time, Align Transform With View has served to copy the transform to a camera node and the remaining 10 for copying the rotation to directional light (since I never remember the shortcut for rotation only). I can't think of situations where I would find it useful to only copy positions, but plenty where I've needed the transformation (e.g. in-game-cinematics). When would it be more useful to position props and particle effects in comparison to view rather than to other props and effects?
If such cases exist then the change is completely justified, but if not or they are exceedingly rare, this only serves to replace a shortcut with two for what I perceive to be the most common operation.
Edit: Obviously I'm also open to the idea of having a full set of 3 buttons/shortcuts.
Describe the project you are working on
The Godot editor :slightly_smiling_face:
Describe the problem or limitation you are having in your project
We currently have 2 actions in the Perspective menu to adjust selected nodes' transform relative to the current editor camera orientation:
The problem is that while Align Rotation With View is a subset of Align Transform With View, there is no equivalent when you only want to set the position. Instead, you have to use Align Transform With View then click the reset arrow on the Rotatino property in the inspector.
There are many cases where it's useful to place a node according to camera position, but discard the current camera rotation (such as quickly positioning a prop or a particle effect in a 3D world).
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Only keep the "set position" part of the Align Transform With View option, and remove the automatic rotation change. If you need to perform a rotation change, use Align Rotation With View before or after using the new Align Position With View.
To prevent usability from suffering when you do want to set both position and rotation, the keyboard shortcuts should be changed to be right next to each other. This way, you can trigger both shortcuts easily with the same hand (and without requiring you to move your hand across the keyboard).
Both proposed shortcuts were chosen to be easy to trigger with one hand (the same hand as the one you're using for freelook in most setups). Unfortunately, there aren't a whole lot of shortcuts available in that area (and not reserved by any other parts of the editor), so the resulting shortcuts may not be the most intuitive ones.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Additionally, to improve code reuse and fix some bugs that are currently present:
Vector3(0, 0, 0)
.If this enhancement will not be used often, can it be worked around with a few lines of script?
No.
Is there a reason why this should be core and not an add-on in the asset library?
This is about improving 3D editor usability.