playcanvas / engine

JavaScript game engine built on WebGL, WebGPU, WebXR and glTF

Home Page:https://playcanvas.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gizmo movement plane

LeXXik opened this issue · comments

commented

This is a feature request to add a fourth movement plane to gizmo, which is always orthogonal to camera's forward normal.

Would you have some examples on how this is done elsewhere to clarify what is requested here? Is it a zoom control in a way?

commented

Its a positional translation. In Blender, it is kind of a default one, although its not on a gizmo - when you press G to move, you enter the translation mode. If you press XYZ after, you can lock to axis. In PlayCanvas you are always locked to axis.

Not sure how to do it from UX. Maybe holding a CTRL the default 3 planes on gizmo get hidden, and a new one appear that can be grabbed. Or a hotkey that would enter a translation mode as if you grabbed the object and moving ortho to camera (no mouse holding, just moving, left clicking accepts the position, right - returns to original position), similar to Blender.

2024-05-10.11-48-43.mp4
commented

Its just so much faster to move objects, especially with hotkeys. In Editor a similar operation is a bit tiring, trying to precisely click the arrows for every small movement. You get a fatigue super quickly.

2024-05-10.12-19-51.mp4

Nice, that looks awesome, thanks!

commented

Okay this might be the point where we shift the editor to use the new gizmo system