Logo
  • Assets
  • Contact
  • About
  • Forums
  • Login

Navmesh agent not following off-mesh link using BT

Forums › 💬 NodeCanvas › ⚙️ Support › Navmesh agent not following off-mesh link using BT

  • This topic has 0 replies, 2 voices, and was last updated 9 years, 4 months ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 1, 2016 at 1:05 am #18520
    nateply
    Participant

      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?

      July 3, 2016 at 9:41 am #18521
      Gavalakis
      Keymaster

        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.

      • Author
        Posts
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Log In

      Footer Logo

      Home | Contact | Privacy Policy
      Twitter | Discord | YouTube
      Paradox Notion

      • Login
      • Register
      Forgot Password?
      Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
      body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }