Using built in distance and direction functions, I get a circular pattern(I'm making a terrain mesh). That makes sense, but I need square distance and square direction functions for my square terrain.
To make the square distance function, I get the distance between point A and point B on each axis, then return the greatest axis distance. That works, but I can't figure out how to make the direction function. Do you know how to make a square direction function?