Enemy unit's AIPath has a jittering movement

Hi ,
I added an AIPath Component to my enemy unit and made it to follow my player unit.But it does not have a smooth movement.
Video link

The AIPath settting.

I tried to modify the variables such as PickNextWayDistance, slowDownDistance. But none of them works.

Is there anything I got wrong?

Finally I found the reason. My unit has a rigidbody2d and the AIPath’s movement switched to fixedupdate.And so the movement updates at a lower fps(my project’s fixedstep is 0.033).

By default, the rg2d’s interpolate mode is none. So I switched it to interpolate and the movement became smooth.

1 Like