Announcement

Collapse
No announcement yet.

Simple Move To Location

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

    Simple Move To Location

    Hello there, im currently trying to develop an arcvhiz real time walkthrough project for people to navigate through. What i found was that people that do not play games have a very hard time to move in the environment using the wasd or arrow keys. For this reason i try to make the movement controls more user friendly by simpling clicking and moving to the desired location. The problem now is that my player actor can pass through certain narrow passages using conventional controls, but when i use the simple move to location command found in blueprints those passages are considered too narrow for the player to pass through. I will provide you with pictures to further understand the problem i encounter even better.






    #2
    If you press P, I believe this will show your navigation mesh in the world. You should see the problem pretty quickly - I imagine the areas with narrower passages will show up as red. When building the nav mesh, the engine uses an "Agent" to test where the AI will be able to navigate. This agent has a set radius. If the narrow passage is smaller than the diameter of the agent, the agent will decide the area is not navigable.

    If you refer to this post, you can see some examples of how navigation is affected with different agent radii: https://answers.unrealengine.com/que...2752/view.html

    The agent radius field I believe can be found in the engine preferences under navigation, might have to search for it though to find it. Reducing this radius should improve accuracy as well as tweaking some of the other values in that section. I've had issues getting this to work exactly right but hopefully this is enough to get the results you need.

    Comment


      #3
      In essence i fixed the problem , but now i cant move the character... i feel like i screw something up , probably a checkbox or something that shouldnt be clicked or vice versa , if you have any idea glad to hear it

      Comment


        #4
        Meaning when you click now the character doesn't move at all? Try using the non-simple move node... I forget if it's just "Move to location" or "AI Move to" but it should be easy enough to find. There will be an enum result from the node which will tell you if the task was issues successfully, failed, blocked by another object, etc. This should give more information as to what the problem is.

        Also, I think maybe your navigation settings must be a bit off. I can see green under your chairs by the pool - do those not have collision? Your nav mesh seems to think you should be able to walk through those but I don't think you should. Also, try to match the agent radius to that of your character to ensure the agent isn't falsely detecting areas to walk that your character wont fit through.

        Comment


          #5
          i will try that now, as for the chairs they dont have collisions on purpose.
          I appreciate alot the fact that you are trying to help me bro!

          Comment


            #6
            Not a problem. I had to deal with a few of these issues when I tried to use AI for a tower defense ... using these AI moves can be finicky but I don't think it should be too bad with a single character. Let me know how this works out and you're still having issues I can load up a project and try to replicate the issue to help debug.

            Comment


              #7
              for some reason the only acceptable values recast nav mesh will accept for the agent radius in order for my character to be able to move is 30<x<40
              Last edited by Ethylenium; 10-08-2019, 06:47 PM.

              Comment

              Working...
              X