Hey guys,
so I have this straight forward script performing a Physics.SphereCastAll. I checked the Input Data using Debug.Ray and it shows me that the origin is correct, the direction is correct etc. But the resulting RaycastHit (correct object hit, expected count of hits) is always positioned at Vector3.zero (worldspace), distance is also 0. Any ideas?
Cheers
Hi,
maybe the problem is the origin. is it an other object ? try to turn its layer to “Ignore Raycast” to see what happens.