store bodies sorted by distance to origin for fast queries
store normal distance, not square of. need the bits for close-range queries
simple body/position query
expose body finder via Space
prepare the finder for the next frame after dead bodies have been culled
use finder for alerts
nicer type names
use the finder for the scanner
make returned bodies non-cost, they may need to be modified
use finder for missile proximity
use finder for ECM
rename to try and make it a bit clearer what this is all about
use lower_bound/upper_bound for the query
lower_bound returns the lowest matching element, not the one before it, so make sure it gets included
don't search before the lower bound when looking for the upper bound. we know its not there
Merge remote-tracking branch 'robn/body-near-finder'
Fix invasive console completion. closes #1972
Merge remote-tracking branch 'laarmen/fix_1972'