A ray cast callback implementation that keeps only the closest hit data.
This is reusable, but make sure to clear the old result by calling
RayCastClosest.clear
if used once or more before.
A ray cast callback implementation that keeps only the closest hit data.
This is reusable, but make sure to clear the old result by calling
RayCastClosest.clear
if used once or more before.