- Home /
Question by
thendricks · Oct 08, 2012 at 04:05 PM ·
raycastfpsai
Help me with AI
I'm creating an fps. I have a shooting script and every thing I just want my AI to be-able to wander around the worldspace without bumping into any thing (I only need the part of the script that makes it wander around). I'm looking for a raycast kind of AI but I don't know how to write a raycast script
Comment
Answer by Sisso · Oct 08, 2012 at 04:44 PM
These two links have everithing that you need:
http://docs.unity3d.com/Documentation/ScriptReference/Physics.Raycast.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613082042im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Fps getting lower over time 0 Answers
Please help me with AI 1 Answer
Raycast Shooting Firerate? 1 Answer
Using box collider to determine if AI should stop help 1 Answer
Swich fire button form F to LMB 1 Answer