3D enemy pathfinding over moving platform
Hello world of Unity.
I need some help. I'm trying to build a subway game where the player has to get to their train. The main obstacles are other riders. I think I have the pathfinding on static platforms working the way I want to, but I am stuck in getting the "other riders" to get onto and stay on a moving surface. So think of it as passenger boards train train starts moving and passenger stays on train until their stop. I'd prefer the other riders still be able to randomly move while still on the train, but I can live without it. I currently have a navmesh set up on both of the surfaces the "other riders" need to traverse with off mesh links connecting the 2 so as long as it doesn't move they get to where they need to. But as far as I understand Navmeshes only work on static objects. I'm actually not sure how to proceed from this point.
Any help would be greatly appreciated. I'm up to the point where I might just put all the Other Rider movements onto a timeline, but I would rather have a level of randomness to the game.
Now the one caveat is that I am not by any means a game developer or programmer. I find the bits and pieces of code that I need and cobble them together and this has worked for me. So bear with me if i have m ore questions to any answers.
https://www.youtube.com/watch?v=FkLJ45Pt-mY
You use Unity nav mesh baking surface in real time from github
Your answer
Follow this Question
Related Questions
Enemy Patrol AI is sideways 0 Answers
Enemy AI keeps chasing player even after the player has left its line of sight. 0 Answers
AI chase/follow problem 0 Answers
using Navmesh or ML Agent ?! 0 Answers