- Home /
How to do spherecast?
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?
Answer by tanoshimi · Nov 28, 2014 at 08:25 PM
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: http://docs.unity3d.com/ScriptReference/Physics.OverlapSphere.html
I saw this article to but It is vague to I dont know how to merge that with my script...
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Make player not be seen by AI, when player in foilage and shadows. 1 Answer
ai navigation help 0 Answers
How to make shops? 1 Answer
zombie ai script 1 Answer