SpatialMap::get and neighbors need to account for collision and multiple entities #76

Closed
opened 2 weeks ago by zedshaw · 1 comments
Owner

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.
zedshaw self-assigned this 2 weeks ago
Poster
Owner

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.
zedshaw closed this issue 2 weeks ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#76
Loading…
There is no content yet.