Answer the question
In order to leave comments, you need to log in
Unity 3D NavMesh How to build path with changing path?
How to build a path on a static surface - everything is clear
Determined the area where you can walk and what object to follow What
if the platforms move and you need to somehow move along them?
Answer the question
In order to leave comments, you need to log in
Option one: use NavMesh Link or Off Mesh Link and update them dynamically as the platform moves. This option is suitable if there is only one path and the platform will slow down in extreme positions in order to wait for the agents. Agents will then have to constantly update their path.
Option two: use the same components, but leave the links static and resolve everything inside the agent. That is, you simply throw the link across the abyss along the platform path, and then the agent will find this path, follow it, see the hole with a raycast, stop, then wait until the hole disappears and jump or step onto the platform. By the same logic, he will be able to jump off the platform.
You can also combine both options, but it rather depends on your gameplay, maybe you don't need too smart agents.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question