optimized 3d raycasting | ScratchStats