Jump to content

Ruler


Michael Betke
 Share

Recommended Posts

Yes, it's quite easy to do. I can make one and upload it to the Tools downloads.

Maybe you could make me a model for the ruler end, something like a cube with some texture.

 

When you Ctrl-click on any model in Editor, it will be set as begin marker,

then you can move the end marker around and it will show you the distance in meters, and also height, width and depth distance in meters. And maybe even angle and compass direction :)

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

To make a quick and dirty one, there is an even that fires when you set targets. So in each model you could run EntityDistance() between the 2 and return the result in a message box in that set target event. When when you drag one model over another it'll give you the distance between those 2 models.

Link to comment
Share on other sites

I was thinking it could consist of 2 separate models. One which is always world axis aligned and which you can move in editor with the gizmo, and one which is at the same position, but pointing to the begin model. So maybe the pointing model could be like an arrow.

 

It would be even possible to stretch the arrow so that it would look like a line between the begin and end end. Lua should really have OpenGL commands, then this could be done much more professional.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

There is no need for a start point model, because any Ctrl-clicked model in the scene can be the start point.

I only need an arrow model and a cube-like (=3D symmetric) model which is always world axis aligned.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...