x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Ignore navmesh and take shortest path?

Hello, im using mouse movement (click to move to hit location) but my character uses navmesh so it walks only on the "green" areas. I want it to take the shortest path, just fall down when i click the floor standing on higher platform. How can i achieve that?

Product Version: Not Selected
Tags:
more ▼

asked May 07 '15 at 11:07 AM in Using UE4

avatar image

Pancakez
6 3 6 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Pancakez,

The only solution I could offer you, if you still wish to use the nav mesh for general movement, would be to use nav links. If these are not to your liking, the best solution would be to create a pathfinding method of your own.

With the way nav meshes work, the characters cannot actually see the level. The characters can only see the green areas of the nav mesh. They aren't aware that they can jump down the side of a ledge as the gap in the mesh that separates the elevated spot and the floor seems like a wall to them unless they are given a nav link.

If this is not the solution you were looking for, please feel free to leave the question unresolved. Someone in the community may know a certain solution that is better for your situation.

Have a nice day

Matthew Clark

more ▼

answered May 07 '15 at 02:27 PM

avatar image MieszkoZ STAFF May 07 '15 at 02:42 PM

You can also try using AIController's MoveToActor function (instead of SimpleMoveTo I presume you're using). This thif function gives you an option to disable pathfinding (the UsePathfinding parameter) in which case AI will just try following a straight-line path.

Cheers,

--mieszko

avatar image Pancakez May 07 '15 at 02:45 PM

Right now im using NavSys->SimpleMoveToLocation(), clearly using the navmesh. I think MoveToLocation is what i was looking for. But my PlayerController doesnt have that method. It exists only in AIController?

avatar image Matthew J May 11 '15 at 06:36 PM

I apologize for the late reply, but PlayerController does also have MoveToLocation. If you're using blueprint, it'll only show if you turn off the 'Context Sensitive' checkbox when rightclicking the event graph.

-Matthew

avatar image Matthew J May 18 '15 at 01:45 PM

Hi Pancakez,

Did you find the solution to your issue? For tracking purposes, I'll be marking this issue as resolved. If you still require assistance, please feel free to comment and the question will reopen.

Have a nice day,

Matthew Clark

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question