DirectionFinder

Author: Will Traxler

This is a short script to determine the general two-dimensional direction between two vector3 points.

The script takes the two vector3 points and returns one of eight directions: Up, Down, Left, Right, UpLeft, UpRight, DownLeft and DownRight.

Here is the direction type enum which is returned: