Hi there! I've got a question that *seems* to be uncovered.
The docs are straightforward in defining what is a RaycastHit.distance, but they don't mention a thing about the values that distance can have.
What happens when there's no impact at all? Is this value = null? And what about Mathf.Infinity Rays?
Should I check its value before trying to use it, so that I know if its float exists?
Thanks for any clarification!
↧