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"

AI won't drop off ledges or climb stairs.

My AI won't walk off ledges or use the stairs. I think it's a problem with the NavMesh, but I'm not sure how to fix it. Pictures are provided.alt text

Product Version: UE 4.18
flowerbeds.png (1.6 MB)
stairs.png (1.5 MB)
more ▼

asked Jan 03 '18 at 09:00 PM in Blueprint Scripting

avatar image

34 8 11 15

avatar image jimd667 Jan 03 '18 at 09:33 PM

Can you post an image of your Blueprint or Behavior tree so we can see the logic behind how you move your AI?

avatar image sounderdisc Jan 03 '18 at 10:36 PM

Here's the Behavior tree and the AI controller event graph.alt text

behaviortree.png (293.4 kB)
aicontroler.png (341.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hi! to fix your problem you can use 3 solutions:

1) You can use NavLink Actors (you can find it in your object mode tab looking for Nav Link Proxy) and connect the points A and B at the start and the end of your stairs. You can use it even for make the AI jump off the ledges.

2) You can edit your NavMesh parameters from Edit/ProjectSettings/Engine/Navigation Mesh. I'm not sure what parameter fix your problem, I can guess Cell Height or Agent max height.

3) You can fix your stairs collision to a ramp, you'd need better IK for foots bt the way so it would take more time.

Have a nice day!

more ▼

answered Jan 04 '18 at 07:30 AM

avatar image

696 23 13 28

avatar image sounderdisc Jan 04 '18 at 07:58 PM

The NavLink and changing project settings worked. For anyone else having the same problem, the setting was "Agent Max Step Height." I also had to change the AI character's max step height.

avatar image PRESSURE2000 Apr 21 '19 at 02:18 PM

could you please tell us what settings you set it to? Im trying and my AI is NOT falling off the ledge!

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

First thing I noticed is that you steps are not green, so no NavMesh on steps and it also appears that the Navmesh is not going up to the edges of you platform.

Should look more like this. alt text

I would play with Navmesh, or repost it as Navmesh issue.

Regards Narg

capture.jpg (118.0 kB)
more ▼

answered Jan 04 '18 at 05:10 AM

avatar image

1.7k 74 38 110

(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