SpatialMap::get and neighbors need to account for collision and multiple entities #76
Closed
opened 1 month ago by zedshaw
·
1 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
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.