Crocotile 3D

Crocotile 3D

Not enough ratings
Measuring Distances and Calculating Angles in Crocotile 3D
By Luke Puke
Learn how to accurately measure distances and calculate angles in Crocotile 3D!
   
Award
Favorite
Favorited
Unfavorite
[How to Measure Distances]
The Distance to Gizmo option can be found in the Transform Tab, Crosshair section.




Distance to Gizmo allows to measure the distance between the Crosshair and the Gizmo at any given moment:




To measure the distance between two given vertices, the Gizmo and the Crosshair have to be separated and placed on respective vertices:




You can move the Gizmo or the Crosshair as you see fit. To move the Gizmo, hover your mouse cursor over the vertex you want to connect the Gizmo to, then press Alt+X:




To move the Crosshair, hover your mouse cursor over the vertex you want to connect the Crosshair to, then press Alt+C:



After positioning the crosshair and the Gizmo on their respective vertices, press "Get" in Gizmo Distance to receive the distance value.


The distance between vertices on the picture is 10 pixels, however, Gizmo Distance value is 0.625 meters:



You have the option of selecting a unit of measurement. In the Transform Tab, in the upper right-hand corner, there is a drop-down menu which says meters or pixels. The value in this box corresponds with the unit of measurement Distance to Gizmo will return.

The demonstration displays the Distance to Gizmo in meters, therefore the value is 0.625.



But how does 0.625 meters equal 10 pixels? Consider the following:

16*0.625 = 10

16 is the default Base Pixel Unit:




Base Pixel Unit defines the number of pixels in a meter. Any Gizmo Distance value can be multiplied by 16 to shift from meters to pixels, unless you have changed the Base Pixel Unit value. If you had changed the value, multiply accordingly.
[How to Measure Angles]
ㅤ│Rotate and Count
Let's assume we wish to measure this slope:


Place the invisible planes on the lowest point of the slope:


Place a tile under the slope:


Select the tile and rotate it towards the slope until it touches the slope. Add degrees from your rotations together. Crude? Yes. Functional? Absolutely.


In this example I will start rotating the tile by 10°. As I rotate, I count:

10°...


20°...


30°...


40°...


The tile is very close to the slope. I will stat rotating the tile by 1°. As I rotate, I count:

41°...


42°...


43°...


44°...


45°!



The tile touches the slope and lays on it perfectly. The slope is 45°.


But what if the tile overshoots? For instance, what if I were to rotate the tile by 1°:




a) Decrease the value of rotation below 1°, for example, 0.1°
b) Ignore the overshoot and count it as 1°

Unless there is a good reason to get the most precise measurement, I recommend going with the b option. Inaccuracy of less than 1° is negligible. It most likely won't matter that you assumed that the slope is 45° although it is 44.7°.

I recommend this method in situations where you don't expect to measure more than one angle. If you anticipate measuring multiple angles, check the next section for a more suitable method.
ㅤ│Protractor Tileset
You can measure angles using the protractor tileset.






If the link does not work, you can download the tileset from this guide or the official Crocotile 3D Discord server, "resources" channel:

Note: to download the tileset from this guide, you have to access it from the web.


How to use it: Select the whole protractor tileset (adjust UV Tilesize value for precision if necessary). Place the tileset somewhere in your scene. Select it and press "Shift+C" to place the crosshair in the middle of the protractor. Press "Ctrl+C" to copy it. Place the crosshair at the vertex of the angle you wish to measure and paste the protractor. Adjust the size of the protractor if needed (make sure to maintain the original proportions!). You will be able to get a clear measurement of the angle!

It is important to select the whole tileset, without extras! It was designed to be pixel-perfect to enable quick and precise positioning. If it's not selected appropriately, protractor center and the crosshair won't align properly.

[How to Calculate Angles]
You can accurately calculate any angle in Crocotile in a few steps.

Let's calculate the angle of the given corner:






First, let's connect angle tiles with another tile to form a triangle:



It makes no difference where tiles are connected. The method will work as long as the angle to be calculated remains unchanged and is included in the triangle.

After the triangle is formed, measure its sides:







After the measurements are completed, the calculations can begin:



The simplest way to calculate the angle is to search online for "SSS Triangle Calculator" ("SSS" stands for "Side-Side-Side"). There are numerous options available online. Then, once you've found one, insert the distance values into the appropriate boxes:






If you want to calculate the angle value by hand, use the Law of Cosines:

Special Thanks
Alex Hanson-White, aka Ninja Sprout, for figuring out how to calculate any angle in Crocotile 3D, using Gizmo distance and the law of cosines. Without you, this guide, and many other related techniques, would have not being possible!

ExileFox / Ryder17z, from Discord, for pointing out that Crocotile 3D measures Gizmo distance based on Base Pixel Unit value. Thank you, without you I am not sure I would be able to figure out that Gizmo distance is measured in meters!