Agent stops and moves very choppy when avoiding obstacles

  • A* version: 5.3.8
  • Unity version: 6000.2.1f1

Hi everyone,

I’m running into an issue with my agent’s movement. It brakes very hard in front of obstacles and sometimes even comes to a full stop. When it tries to fly around them, the movement becomes very jerky.

Some details that might be important for context:

  • In my scene I’m working with larger scales (for example, the ship has a size of about 40x150 Unity Units)
  • The distances between the stations are around 2000 Unity Units
  • For the test, I stripped away all other logic from the ship, so only the AIDestinationSetter and the Follower Entity remain on the root level, plus a custom script for setting the target
  • I’d like to use local avoidance later on, but for now I disabled it to reduce the complexity of the problem
  • I’m currently using a Grid Graph

Any tips or ideas on what might be causing this behavior would be greatly appreciated!

Component Confis:


Unfortunately, I can’t post a video link because my account is too new. However, you can probably see the problem on the screenshot:

  • In the green areas, the ship moves perfectly at the correct speed, etc.
  • In the red areas, the ship slows down to about 1–5% of its speed and starts “shaking.”

Hi

The latest beta have some fixes for this exact problem. Try it out :slight_smile:

Thanks for your quick help. I’ve now updated to 5.4.2. The problem itself, however, remains unchanged. Does anyone have any ideas on where I could take a closer look to eliminate the “shake effect”?

Version:

Move-Path:
Screenshot 2025-08-27 120039

FYI: I was able to fix the shaking effect by adjusting the rotation / max rotation and the overall speed. The values just weren’t well balanced with each other.

Problem solved for now :+1: