- Joined
- Jun 21, 2014
- Messages
- 350
- Thread Author
- #1
We have an option to sort gameobjects by distance to the player via .sortByDistance, however there doesn't seem to be an option to sort by distance to another locatable.
So we could do something like:
This would allow us to save a bit of work trying to figure out how to manually sort by distance to a locatable.
@Cloud
So we could do something like:
Code:
GameObjects.newQuery().names("Granite rocks").results().sortByDistanceTo(new Coordinate(x ,y, z)).limit(0, 2);
This would allow us to save a bit of work trying to figure out how to manually sort by distance to a locatable.
@Cloud