This is something you should definitely do when you’re working with a tilemap. It’s basically a free spatial hash.
There’s a nice illustration in the blog post I linked earlier:

This is something you should definitely do when you’re working with a tilemap. It’s basically a free spatial hash.
There’s a nice illustration in the blog post I linked earlier:
