godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.99k stars 21.16k forks source link

Translation snapping should have individual settings for the x, y and z axes #11046

Open Arjan219 opened 7 years ago

Arjan219 commented 7 years ago

Humans are not cubes, we are tall and thin. We made our hallways tall, our doorways tall, the houses we live in, and the closets we hang our clothes in. The editor's translation snap however assumes that the entire world is made of uniformly-sized cubes. (or squares, in case of the 2D editor)

I would enjoy the ability to work on a different y-level without having to fiddle with the snap settings every time i want to go back down a level.

Piet-G commented 6 years ago

In master the 2D snap can be configured on the x,y level but 3D can't... Odd

KoBeWi commented 6 months ago

I gave this a try and implemented it for 3D editor. However it turns out other editors use the snap from 3D editor in different forms (as float or even as Vector2), making it not obvious to handle.

The 3D editor implementation (does not compile): snap3d.diff.txt