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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Why does my character do a little dance on slopes?

I did change some project settings regarding nav mesh in order to have my character climb over steeper hills. And also in character movement i made the same changes to Max Step Height and Walkable Floor Angle (as seen in the image below). Ideally i'd like to have my character be able to reach all points on the map, no matter how steep they are.

[/Script/Engine.RecastNavMesh] CellHeight=15.000000 AgentMaxStepHeight=55.000000 AgentMaxSlope=75.000000

Does anyone know how to get rid of this ugly "dancing" glitch which happens most of the times when character hits the slopes? Attached are movement component and reproduction video.



Product Version: UE 4.17
more ▼

asked Nov 24 '17 at 11:03 PM in Blueprint Scripting

avatar image

3 2 5

avatar image mihovil Dec 10 '17 at 05:40 AM

This bug exists even if my NavMesh and character have default settings, but the higher AgentMaxStepHeight is, the more visible the problem becomes. Would anyone like to give it a try and solve this?

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I have to roughly guess here but here is what you want to look out for. You generate a Nav Mesh that indicates where your Agent can walk to but that does not necessary mean he actually can. As example you could genarte a Navmesh that happly makes 75 degree Walkable Angles but your Agent is limited to 25 degrees. So he will try to go trough a location greater than 25 degrees than realize he cant and recalculate another path that tells him again to go there and so on. And that can result in a Happy Dance like that =)

In your case you need to be aware that a Navmesh is not pinpoint accurate. So you always want to have your Agent have a little more freedom than defined in the Navmesh to avoid those kind of precisision errors that can happen.

But again there is not enough debuging information for me to be certain if its the case for you but very likely.

Good Luck and have Fun =)

more ▼

answered Nov 24 '17 at 11:39 PM

avatar image

6.9k 143 26 172

avatar image mihovil Nov 25 '17 at 05:08 AM

this seems to be connected with the AgentMaxStepHeight. The higher the value the problem more evident. But i need this setting to be higher then the default othervise the navmesh won't cover hills.

@Nachtmahr what info would you need to be able to give a possible solution to this problem?

(comments are locked)
10|2000 characters needed characters left

I think your ground friction might be too low. It looks like he's walking on ice and can't stop himself fast enough if there happens to be a downward slope. Or increase the deceleration rate.

more ▼

answered Dec 10 '17 at 06:37 AM

avatar image

329 7 8 12

(comments are locked)
10|2000 characters needed characters left
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