- Home /
Make AI walk on instantiated platforms ?
Hello, i have an AI in my game that walks around the world, but i'm running into a problem when instantiating a platform players can run on during runtime. The AI is not able to walk on it since the NavMesh was baked before instantiating the object. How do you solve this ? Right now i just carve the NavMesh to solve the issue with the AI running through Walls but that does not solve the AI being unable to walk/path on these objects.
I haven't tried this but look into Off-$$anonymous$$esh Links
Of course if that doesn't work you don't have to move with the Nav$$anonymous$$esh agent, you could just tell it to move towards the transform location on the instantiated platform.
That doesn't work. You need to start raycasting to get the height of your platforms, you will receive lots of exceptions caused by the Nav$$anonymous$$eshAgent and basically have to write a 2nd AI system on your own that does not rely on Nav$$anonymous$$eshs, because your agent is unaware of walls and objects placed on the platform...
Your answer
Follow this Question
Related Questions
Instantiate AI characters over Navmesh area? 1 Answer
Can you bake nav mesh in prefab mode? 0 Answers
Move NavMeshAgent at a constant speed 1 Answer
Navmesh path without agent 1 Answer