|
|
Hi,
I have a 2D field with some units moving around and I need a dynamic data structure to store those units in such a way that , for a on the fly given point P, I can traverse the units in the map from closest to P to farest away from P. I don’t know if there is something like that around. If it isn’t possible, it would be also okay to be able to traverse the units from near to far relative to some other unit within the data structure (instead of a random point).
i don't know whether somthing like this exist or is simply impossible and hope it does exist :p
thnx
|