Right now these functions just return the first thing found, but I need to figure out if that's what is needed. It could be fine, I could only return things with collision, or make it an option to return everything or collision only.
Right now these functions just return the first thing found, but I need to figure out if that's what is needed. It could be fine, I could only return things with collision, or make it an option to return everything or collision only.
Looks like SpatialMap::get is only used in main_ui.cpp::camera_aim and that could go away with a refactor of where the camera aim is maintained.
Neighbors is only used to get collision neighbors, so it's fine too.
Looks like SpatialMap::get is only used in main_ui.cpp::camera_aim and that could go away with a refactor of where the camera aim is maintained.
Neighbors is only used to get collision neighbors, so it's fine too.
Right now these functions just return the first thing found, but I need to figure out if that's what is needed. It could be fine, I could only return things with collision, or make it an option to return everything or collision only.
Looks like SpatialMap::get is only used in main_ui.cpp::camera_aim and that could go away with a refactor of where the camera aim is maintained.
Neighbors is only used to get collision neighbors, so it's fine too.