After chunks, I added raytracing for my Garry’s Mod gamemode’s custom entity system. It used a modified Bresenham’s line algorithm to find chunks before intersecting their entity’s AABBs, ending in triangle testing. It was later swapped to use DDA #indiedev #gamedev #modding

PNG