issues
search
leftiness
/
hex_math
MIT License
4
stars
1
forks
source link
Closes #41: Make ray aware of walls
#61
Closed
leftiness
closed
7 years ago
leftiness
commented
7 years ago
TLDR:
Break before stepping from previous step to current step if a wall would prevent taking that step
Details:
util::line takes a map(point, prism) instead of a set of opaque points
Added util::get_step_direction(point, point), calculate step direction based on sign difference between previous step and current step values
Added Direction::opposite(self), return direction opposite to self
Convert from point to prism with no walls
Return whether a HasWalls has wall in a provided direction
Removed duplicated line/ray tests with 2d functions
TLDR:
Details: