Units getting stuck

Sometimes my units get stuck and can’t seem to figure out why. I’m using FollowerEntity with RVO enabled.

See the video, there are a few problems with the pathing

The 2 top most units have targets that have a possible path towards their respective target but they get ‘stuck’ on nearby units.

The 2nd highest unit on the left side has a valid path to it’s target, but choose to just keep walking into other units:

Eventually it’s “fixed” because other units come and push them into place, but it does not look ideal in gameplay

I think it’s because I had the wrong RVO collision layers set.

I had the units avoiding their enemies instead of JUST friendlies.

Changing it so that units only have local avoidance with friendlies seems to improve it a bit, but there are still some issues.

See below video:

The units circled in red have trouble pathing around their friendly allies in front of them to attack the wagon.

I have local avoidance on and set to avoid other friendly units

You may want to give changing the radius of the units a spin. I’ve found this usually drastically changes how units behave with RVO. If it doesn’t work report back and we’ll see what else can be modified :slight_smile: