Announcement

Collapse
No announcement yet.

AI not moving outside its invoked NAV mesh radius.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AI not moving outside its invoked NAV mesh radius.

    Hello am having some trouble with AI setup.
    I have 1 Nav Mesh Bound Volume in my level.
    The Nav Mesh is only being generated around my AI (Navigation Invokers) and updated runtime.

    Everything works fine when the location it is supposed to move to is within the radius of its current generated Nav Mesh.
    But if the location is outside the radius - (3000) the AI will not move and "AI Move To" returns "Aborted".

    How do I get the AI to move to a location that is outside the current radius of the generated Nav Mesh?
    What I expect to happen is that it starts moving towards the location and "nav tiles" are generated until it reaches its destination.

    Thank you for any help on the matter.

    Cheers.

    WCode

    [Unsure of where to post this. Please Move if Apropriate.]

    #2
    Have you tried using an Event Tick and having that execute the Register Navigation Invoker function?

    Comment


      #3
      No i only have it for Begin Play like this ( AICharacterClass:: ).
      Click image for larger version

Name:	42c57a8dffc0085e8aa22a05a9bda6e9.png
Views:	1
Size:	69.4 KB
ID:	1094038

      I can see the nav mesh beeing updated and removed, so I do not think the problem is the Registration.
      I may be wrong ofc.

      Comment


        #4
        Hmm, I wonder if its because you're asking for a point outside the current navmesh. i.e. you are literally unable to compute a path because its outside the mesh. Try doing a series of smaller moves (up to the extent of your navmesh invoker radius) and see if this works?

        It would make sense if it couldn't path outside the newly generated navmesh area, because there's no navmesh to path on. So to go longer distances, you'd have to break up the move into a series of smaller steps? Of course that's just me thinking aloud and I could be completely wrong.

        Comment


          #5
          I agree that was my thinking as well.
          So I try to get the Path like this Click image for larger version

Name:	0779d3b826de153d4bb6e6917cb4e92d.png
Views:	1
Size:	67.3 KB
ID:	1094060.
          But it is not returning a Partial path ether, do you know how to achieve this?
          Last edited by WCode; 11-27-2015, 01:50 PM.

          Comment


            #6
            Hmm, is it even meant to return a partial path? What you might need to do, is get the nearest point towards your goal destination as a point on the current navmesh and path to that, then when you reach it, request the next path etc. Until the goal destination is the same as the path point on the navmesh, then you just do that path as per usual and you're done.

            Comment


              #7
              Yes i was thinking the same thing.
              But when going over the API and Nodes there are checks for Partial path.

              It just seems to me that it should be able to handle this.
              Do anyone know how you get a partial path for all my attempts return false for Partial Path?

              Comment


                #8
                So i did some more testing and I am at a loss.
                When Finding the Path like this.
                Click image for larger version

Name:	4485d509d15d37535c2ea39c8ca88885.png
Views:	1
Size:	59.6 KB
ID:	1094210
                It will return a Array with path points to walk to, but if the location is outside its radius.
                The array is empty and no movement/ pathing is done.

                In all honesty i belive this is a bug, it should atleast return a partial path to the location that ends at the navigation radius and by then new tiles will have generated so it can walk futher.

                But i get no data at all when the point is outside the Invoked Radius.
                Here is a screenshot of my AI Character / Pawn BP and Controller.
                Components in Character/Pawn Class/BP
                Click image for larger version

Name:	44411bc86a8fca429853b8a3ffcf5ecc.png
Views:	1
Size:	8.1 KB
ID:	1094212AIController componentsClick image for larger version

Name:	650929ce48a310132bdf525bc2b8c122.png
Views:	1
Size:	10.5 KB
ID:	1094213

                If anyone spots a mistake in my setup please let me know.
                WCode
                Last edited by WCode; 11-29-2015, 06:38 PM.

                Comment


                  #9
                  Going to bump this since I am stile stuck.

                  Comment

                  Working...
                  X