- Home /
my zombie keeps going through me and walls
hello,so i was making a zombie game and before i even put the animation on the zombie i was able to walk right through it but when i put the animation on the zombie it was walking to me and it was going through walls and it was walking right through me like air so a guy on unityanswers told me to re post my question with a screen shot of my navmesh because he said it has something to do with it so ill show you the screen shot and my script.
Did you set the walls to be static for the Nav$$anonymous$$esh? It should avoid anything that's set to static and too big to step over.
Even if you didn't do the walls have box colliders on them?
no how do i set the walls to be static,that might fix the wall problem what what about the zombie walking through the main charater
I might be wrong, but should the Nav$$anonymous$$esh Walkable be set to everything?
OH $$anonymous$$Y GOD IT WOR$$anonymous$$ I ADD RIGIDBODY AND IT WOR$$anonymous$$ ThANkS YOU SOOOO $$anonymous$$UCH
Answer by MechanicalGaming · Jan 03, 2015 at 11:09 AM
I can't see it on the screen so I better ask it. Have you put a RigidBody on both game objects?If not then do, that's more than likely why you can walk through them. http://docs.unity3d.com/Manual/class-Rigidbody.html
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
A node in a childnode? 1 Answer
Help With Zombie Survival? 2 Answers
Terrain isn`t working PLEASE help 2 Answers
Help calling a code in C# script 1 Answer