Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Libgdx array of Vector2 closest point

$
0
0

I have an array of objects. Their position is a Vector2 (x, y). I want to select the closest object, given a (x, y) coordinate (that represents an user touch on screen). Searching on web I found a few algorithms, like this one. But before I try and implement that I would like to know if a similar algorithm is already implemented in LibGDX API.


Viewing all articles
Browse latest Browse all 434

Trending Articles