Why does the nav mesh do this?

I’m having a real hard time getting the navigation mesh to work properly on stairs. It’s just inconsistent. I find what I think works for one area in terms of step height and depth, and then I go to another area and it blanks out these areas for some unknown reason.

I’ll move the walls back and forth to see if that’s it, and it doesn’t really help. I’ll move steps up, down, in, out. Still not much help. I’ve looked to see if there’s some union or other thing causing this and I can’t find it.

Anyone have similar experiences and find a consistent way to avoid this?

Here’s a video of how the mesh changes when I make one of the steps a jump.

https://gyazo.com/643ade47a9c1ab26d46f77684f6c83c7

2 Likes

It probably has something to do with collisions. Meshes on Roblox unfortunately has weird mesh collisions calculations. You could just make those meshes cancollidable and just put a transparent wedge underneath.

I forgot to say I’ve also tried putting invisible wedges on top of the steps with no luck.
This seems to happen more frequently on the corner of a stair landing and down the stairs.

The funny thing is, if I put an extra part in which makes an unnecessary jump in the stairs (see the pink part), it fixes the weird missing part (but adds a jump of course)

So here is what I did to work around this issue:

I created a transparent step (as shown in pink) on top of my existing step to raise up the step height until it made a jump on the last step, which straightened out the weird mesh issue. This technique worked in every staircase I tried it, and neither players nor NPCs were affected by the jump. Wasn’t even noticeable.

And, by making it transparent, it didn’t look weird either.

image

I’ve found that a better solution for stairs is to make all of the stairs not collide and add in a single invisible ramp that acts as a “hitbox” for the stairs. Additionally, it seems things work best when you keep a waypoint spacing of 2 studs. Doing these two things fixed the issue for me.

Hopefully two years later this post can be of some help.