Are returned trees ordered by distance from their center to a given location, or from their edge to a given location?
Took a quick look at battlecode-server. It looks like it is the distance from their edge to a given location.
With the way our spatial indexing works, objects (trees and robots) are returned ordered by distance to center point, not edge. Thanks for pointing this out, we'll clarify in the docs.
Thanks for the clarification!
Will a tree appear in senseNearbyTree if the center point is inside of the search radius? Or does the entire tree need to be in the search radius?
@rubik The tree will be included if any part of the tree is inside the search radius. They are just ordered by distance to center point.