Physics.Raycast direction parameter need to be normalized?

I don’t see anything in the function description. Normally I would just normalize it to be sure, but I know that to do so means I’m taking a square root which would be nice to avoid.

Thanks in advance!

2 Likes

You don’t need to normalize your direction vector. That said, a single square root is nothing next to a raycast in all but the simplest of scenes.

4 Likes

Thanks!