Godot: Implement a 3D / 2D ruler

Created on 26 Mar 2019  路  3Comments  路  Source: godotengine/godot

Godot version:
3.1

OS/device including version:
Windows 10 x64 / NVIDIA GeForce GTX 1060 6GB / Intel Core i7 4790K

Issue description:
Implement a ruler that shows the distance between 2 points (x, y,z for 3D) or (x, y for 2D).
It is often necessary to measure an object that has been scaled or even the collision distance between 2 or more objects.

archived feature proposal editor

Most helpful comment

i think this can be done with a tool script. but i agree, would be nice to have it as a ruler

All 3 comments

i think this can be done with a tool script. but i agree, would be nice to have it as a ruler

You could create a node that takes a list of Node paths, and draws geometry or lines to each one of their centers.
If node is VisualInstance you could get_transformed_aabb() and draw a wire framed cube.

Lots of options with a tool script, especially with class_name you could even use the nodes for debugging in game

For the Rect of a 2d Node it seems a bit more complicated, it'd be nice if you could get the rect of any canvas item

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.

The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.

If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mefihl picture mefihl  路  3Comments

blurymind picture blurymind  路  3Comments

EdwardAngeles picture EdwardAngeles  路  3Comments

nunodonato picture nunodonato  路  3Comments

RebelliousX picture RebelliousX  路  3Comments