- Home /
Question by
Makarok · Jan 20, 2021 at 10:15 AM ·
ainavmeshnavigation
Problem with simpliest AI and Nav Mesh i quess
I just make a simple AI enemy Script using Nav Mesh Agent, all solid meshes for AI i made navigation static. Bake navigation. And if Enemy AI is one on scene, it works fine, but if i copy more then one enemy, something brokes and they're spawn in random positions on the scene and don't moving. Script is very simple, just set destination to player position.
Comment
Answer by Makarok · Jan 20, 2021 at 10:54 AM
Ok, i fixed it, i quess. I just add all script stuff to Empty Gameobject and add model of enemy to it. If all script staff stays on model itself, then it became buggy like this.