NavLink Jumps are Inconsistent

Hi. I’m having trouble with inconsistency in AI characters not completing jumps using Smart Links. Sometimes the jumps work perfectly. Sometimes they they jump and bounce backward to the original jump point and sometimes they get caught in a loop trying to complete a jump and just jumps over and over. Thanks for any help you can offer.

Hey @Nitrox32 !

Could you provide us with some more information? There’s not a lot to go on here. To start let’s get video of the jump succeeding a few times, and video of it failing once or twice. If we could get that and maybe some video of your navmesh layout, that could get things rolling! :slight_smile:

Here’s a short snip and a picture of my navmesh. I’m kinda at a loss. I’m also finding that the navmseh links are not letting my AI go through doors as well. If I can understand why the jumps aren’t working that might give me some insight on the doors. Thanks.

There are a couple of things to add. I do have Runtime Generation set to Dynamic and Generate Nav Links is set to true.

Ok, I think I solved it. I had a couple of things going on. I had an EQS with a Project test on it. For some reason it was interfering with the EQS when it was jumping. While in the air, the EQS was making the destination point invalid and sending it back to its last known valid position. The second problem was if another enemy was behind the enemy that was jumping, the jumping EQS would try to create a valid position which was behind it thus pulling it back to the last known valid position in mid jump. I solved this by adding a Dot test on the attack EQS to ignore enemies that are behind it.

There is one last problem and I think I understand why it is happening but I don’t know how to fix it. When the enemy jumps across the circled area below, it jumps to the nav mesh below it instead of across it. I guess it thinks jumping down would be the easiest option. Any ideas on how to fix that?

1 Like

Awesome progress!

Regarding that gap and the agent jumping down, I’m not sure based on the angle. If it has a goal that’s closer by jumping down then it should take that route but if it’s closer by jumping up it should go up…

Also make sure the goal location is up higher than the floor to make sure it’s not correcting downwards! :slight_smile: It looks like it’s going through the floor.