Original Post
I''m trying to think of a good algorithm for radar system in a big space game. The radar is responsible for finding all objects within range and storing pointers to them in a buffer, which is reset every frame. The trick is in organizing game objects in such a way as to make lookups fast and efficient.
As far as I know, all space games divide space into separate sectors, which jump gates to connect. So radar only needs to check all objects that are in the same sector. But what if I don''t want to have separated sectors? It''s not hard to think of a simple brute force algorithm, I want to know if there are any clever algorithms for this.