How can i fire 180 raycasts in + 1 degree each time. also can i apply one hit variable to all these raycasts or do i have to do this individually. This is for an ai system wich i want to use 180 degree sight detection with raycast.
You can use Physics.OverlapSphere to perform a 360’ raycast, then calculate the vector dot product to determine which of the hits lay in the 180’ FoV “in front of” the observer.