1
0
Fork 0
A toy raytracer that started to keep me busy during the French Robotics Cup 2019, when my support was not needed.
Find a file
trotFunky f7e1b3eab9 World: Fix wrong block type being returned in castRay
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().
2024-02-05 23:04:19 +00:00
.gitignore First commit, world map creation 2019-05-27 13:50:49 +02:00
CMakeLists.txt Debug: Support frame tracing via Tracy 2024-02-05 13:55:27 +00:00
Color.h Colors: Introduce color type abstraction 2024-01-26 23:07:25 +00:00
FrameTracing.h Debug: Support frame tracing via Tracy 2024-02-05 13:55:27 +00:00
LICENSE License as MIT 2023-12-30 14:56:26 +01:00
main.cpp Debug: Support frame tracing via Tracy 2024-02-05 13:55:27 +00:00
Player.cpp Clean-up: Change indentation to tabs 2024-01-28 22:08:35 +00:00
Player.h Clean-up: Change indentation to tabs 2024-01-28 22:08:35 +00:00
World.cpp World: Fix wrong block type being returned in castRay 2024-02-05 23:04:19 +00:00
World.h World: Introduce a struct for raycast results 2024-02-05 00:33:01 +00:00