"constrain inside graph" problem

I’m using AIPath’s “constrain inside graph”.

However, if the agent moves quickly, such as a dash or knockback, it is out of range of the NavMesh. and fall by gravity.

I am using the agent.move function.

I can make it not fall with the PointOnNavmesh function, but that’s not the result I want.

I’m also seeing weird behavior with a spherical navmesh and constrain inside graph, almost as if the gravity settings are being overwritten (the agent slides down the side of the sphere). Curious to know what the behavior is supposed to be.

Have you perhaps set the A* Inspector → Settings → Max Nearest Node Distance setting to something very low? This could interfere with the constrain inside graph code (if the agent moves further than this distance in one frame).

That has a simpler explanation. The constrain inside graph code currently does not work on a spherical navmesh. I’d have to use a different approach for that. As it works right now, the code to constrain it to the navmesh will for most position exert a slight force on the agent when used on a spherical navmesh.

Thanks for the explanation.