hello i have an AI if the player is out the view the ai will look arroung at this moment the ai must send rays 360 degrees arround him. The unity docs site explains it not good. Can anyone help me? Explaining it samples?
A spherecast does not cast rays in a sphere; it casts a sphere along a ray (a “fat” raycast). It sounds like you might want Physics.OverlapSphere: Unity - Scripting API: Physics.OverlapSphere