I needed a way to check for all gameobjects within a set sphere of my player object.
I found Physics.SphereCastAll which will return a RaycastHit, exactly what I wanted. But, I am having trouble understanding the method signature/docs.
Basically, it's the two things in the title I am confused on right now:
From Unity docs:
- radius - The radius of the sphere.
- maxDistance - The max length of the sweep.
Is 'max length of the sweep' a measurement of time (or degrees?)? I would have thought the length would be the same as the radius (or at least you could calculate it from the radius) but it obviously isn't what I think length means.