Spinning on a spot

  • A* version: 5.4.7
  • Unity version: 6000.6.0f1
  • FollowerEntity

I am using the follower entity to navigate on a recast graph, but sometimes it performs some weird movement spinning on a spot (see the video below). I’ve tried different component settings, but no luck at all. Is there something I can do to change it or it’s a known bug?

It is the only issue blocking me from the release. It there is not solution should I look for alternative solutions or maybe it’s easy to implement a custom navigation agent?

Looks like this one got buried a while ago, sorry about that. Can you post your FollowerEntity settings?

Sure, here it is

If I remove “Allow rotation on the spot” checkbox it will orbit the corner, but with a bigger radius.
I tried different combinations, but in general it keeps spinning once in a while.

I finally found this related thread I was looking for:

This is a good solution posted by Aron himself so give that a shot? Otherwise what’s your graphs node size? One of the issues I found while looking into this was that small nodes caused this more frequently.

This did nothing to me. Additionally I got a good case recorded:

It looks like the mesh triangulation may produce quite small nodes for navigation and those nodes’ corners may affect the agents.

My graph settings looks like this

I meant that you should check the entire thread and see how much of it may apply to you and if any of the noted fixes may help. One of them was increasing voxel size. What did you bump it up to/from?