#Convert Direction to array index
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I want to find a better method for picking from an array of items based on a direction
it's easier to explain with a picture:
I want to pick one of the points that's closest to the direction of the station (upper right in this case)
previously I was using a raycast to detect the boxes, but I feel like there is a more elegant programming solution