Also known as TAXICAB DISTANCE, it measures the distance between two points when you cannot move diagonally. Pretty much like in a big city like Manhattan!
Both Euclidean & Manhattan are special cases of the MINKOWSKY DISTANCE.
5โฃ GREAT-CIRCLE DISTANCE ๐
The shortest distance between two points on the surface of a sphere.
You need to know:
๐นr: radius of the sphere
๐นฮป: longitude of both points
๐นฯ: latitude of both points
For small enough distances, it converges to the Euclidean distance.
โจ Thank you for reading! โจ
If you are interested in #gamedev, shader coding, AI & ML, follow me for more content like this! ๐
I also have a @Patreon with hundreds of Unity tutorials! Feel free to have a look! โบ๏ธ
1โฃ ๐ฐ๐ ๐๐๐: always called before any ๐๐๐๐๐ & after a prefab is instantiated
2โฃ ๐พ๐๐ด๐๐๐๐๐: called just after a ๐ถ๐๐๐๐พ๐๐๐๐๐ is enabled (including when loaded, created, or a ๐ผ๐๐๐๐ฑ๐๐๐๐๐๐๐๐ script is added)
3โฃ ๐๐๐๐๐: called before the first frame update. This happens only if the script is enabled. ๐๐๐๐๐ can also be made into a coroutine by changing its return type to ๐ธ๐ด๐๐๐๐๐๐๐๐๐