Hello! If I have a value like Vector2(4,4) and I want to check it against an array of Vector2s (see something like: [Vector2(3,3), Vector2(6,7), Vector2(9,2)]) - would assume it would return Vector2(3,3)
Is there a method for something like this? Example:
var vectors = [Vector2(3,3), Vector2(6,7), Vector2(9,2)]
get_nearest_vector(Vector(3,3), vectors)
Context: I am using this to move an enemy closer to the player based on Nathan’s wonderful tactical RPG movement series 😍😀😉