Describe the project you are working on:
Godot Engine 3D Game Project
Describe the problem or limitation you are having in your project:
Godot Engine uses base ten. Unity and Unreal Engine also use base ten. TrenchBroom uses base two.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
By both having a base ten and a base two option, both quake-likes and modern metric engines can be accommodated.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
https://github.com/kduske/TrenchBroom/pull/3297
One way is to directly change the units, but that isn't the best. I would add a TrenchBroom to different bases mode.
The example code goes to the snap code and grid code and directly changes the base. Note that the main guts of the pow function implements the change.
Another proposed way is to have a preference window toggle that allows you to specific base two or base ten. However, the snapping menu is hard coded to use text labels.
If this enhancement will not be used often, can it be worked around with a few lines of script?:
I don't think Trenchbroom has a scripting language.
Is there a reason why this should be core and not an add-on in the asset library?:
Or an asset library :D.
It's a good idea.. the only question is where to put the preference (game config vs preferences).
Agree it鈥榮 a good idea. I鈥榙 vote for game config.
Maybe "gridBase":2 / "gridBase":10 ?
Are we going to restrict it to base 2 and base 10? I don't see why we should support other bases, but then I guess it wouldn't be any more work either.
Wanted to mention that there are two variations of base 10. "meter" and "cm". Don't have a design for this.
I don't see us going as far as supporting different units.
Most helpful comment
I don't see us going as far as supporting different units.