Quantcast
Channel: Latest Questions by esitoinatteso
Viewing all articles
Browse latest Browse all 92

RaycastHit.distance Values

$
0
0
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!

Viewing all articles
Browse latest Browse all 92

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>