Coding Math – Calculating Direction Leave a Comment / Youtube Tutorial / By gamedevjon In this unity tutorial, we take a look at how to calculate direction in Unity! This is useful if you want to know the distance between an gameobject, or if you want to create an enemy system where it chases the player! We take a look at what most believe is a useless method, but trust me! It’s important. We look at how to calculate direction with the use of Pythagorean theorem!