Like people walk on a big ship while the ship move around the world?how to make it with navmesh and agent?
Have you seen the NavmeshComponents package released by Unity? They have a component that I think is called NavMeshSurface. It can be moved around, unlike the normal Navemesh which is baked.
You can find the package here…
Hope this helps.
EDIT: Check out the following posts…
https://github.com/Unity-Technologies/NavMeshComponents/issues/9
https://forum.unity.com/threads/navmeshagent-and-moving-on-moving-objects.473592/
Thanks for your help ~yes I have used navmesh surface component,although it can be moved around,but the agent still treat it as static navmesh. The moving navmesh surface can’t carry the agent at all.and if set the agent as a child of the surface object,the agent will stop moving as soon as the surface object move …well ~how can I fix it?@Raimi
An ugly hacky way to achieve this could be to move everything but the navmesh surface. Like, instead of moving the ship, you move the entire world in the inverse motion that you want the ship to follow.
It may not be a viable solution for you but, if your game isn’t too complex, you could do that.