In my game I have a feature where the player’s actions get recorded and you can then rewind or fast forward through this recording. So among other things every point that the player clicks on gets saved and then you can use the slider to scroll through the recording and the agent moves along the saved points . Here is a video for the specific scenario I’m currently dealing with:
Basically I have two offmeshlink a window on the left and a door on the right, the problem is that the navmesh agent goes left through the window when going “upwards” (increasing z-value) but goes through the door on the right when going back to the previous point (rewinding time). I know I could create a intermediate waypoint to solve this. But is there maybe a way to change the way pathfinding works to make the player always take the same path no matter which direction they are coming from?