NodeCanvas Forums › Support › Navmesh agent not following off-mesh link using BT
I have Nodecanvas behavior tree setup on an NPC (using a modified version of the soldier BT in the examples). The NPC sees and chases the player just fine (using Unity navmesh agent on the NPC). Now, I am trying to get the NPC to trigger a jump onto an off-mesh link (from the ground up to a flat 1-meter tall rock) to pursue the player. However, when I move the player up onto the rock, the NPC approaches it, but keeps running (animation), but makes no forward progress at the point that it should follow the off-mesh link up onto the rock. It doesn’t seem to recognize the link. The navmeshes and links appear to be setup correctly. Any advice on this? Is there something I’m missing here?
Hello,
This should work fine since the NodeCanvas action for ‘Move To’ is more or less the same as calling Set Destination on the NavMeshAgent. Does the character navigates to the point if you simply call SetDestination from a script for testing purposes?
Also, taken from the Unity Manual for your convenience, this might help:
“If the agent does not traverse an Off-Mesh link make sure that both end points are connected correctly. A properly connected end point should show a circle around the access point.
Another common cause is that the Navmesh Agent’s Area Mask does not have the Off-Mesh Link’s area included.”
Let me know.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh