A toy raytracer that started to keep me busy during the French Robotics Cup 2019, when my support was not needed.
The GetBlock() call has specific offsets that are angle and axis dependent to get the correct square on the grid from the coordinates of a hit. This is something that I forgot when introducing the RaycastResult struct, and just used the first GetBlock() as a common call, returning wrong types in some cases. As with the hit coordinates, save the type of block hit and use that depending on the closest hit later, rather than a common and wrong GetBlock(). |
||
---|---|---|
.gitignore | ||
CMakeLists.txt | ||
Color.h | ||
FrameTracing.h | ||
LICENSE | ||
main.cpp | ||
Player.cpp | ||
Player.h | ||
World.cpp | ||
World.h |