- Home /
Enemy HELP
hey guys i need help i am using the robot from unity and i want it to chase me and i have done that but the robot can walk though walls i dont know how to stop that from happening so i asked you guys.
Thanks
skully412
There's no really simple way around this. You will have to go through a bit of AI I guess. Check out AngryAnt's 'Path' here http://angryant.com/. Its free ! and really good
$$anonymous$$aybe you can help the robot detect walls in front of him using raycasts and then turn in a different direction but that's a really naive method I guess.
I hope this helps!
i got it but i dont know what to do i get like 2 c sharp scripts but i dont know what to do with them
Answer by Zorcian · Feb 02, 2012 at 03:20 PM
You could add a box collider to the wall and then activate it as is a trigger then, make a script that upon enter turns character around. Sorry cant help you much more without a detailed description.
Your answer
![](https://koobas.hobune.stream/wayback/20220613063551im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Solid enemy help 1 Answer
Help AI going through walls 0 Answers
How to Stop Enemy "Shooting Through A Wall" 1 Answer
Reset a timer? 0 Answers