FollowerEntity ignores penalties in the RecastGraph

Hi, I’m using version 5.1.1.

Unlike RichAI, FollowerEntity does not properly follow the penalty in RecastGraph.

The blue area has a penalty of 0, while the rest of the area has a penalty of 10000.
I created a road mesh separately and tagged it with RecastMeshObj.

Why FollowerEntity does not move along the road?

fe.case

rich.case

2 Likes

Hi

This is a known issue. It’s a priority on my todo list. The FollowerEntity is a bit too aggressive in simplifiying its path.

3 Likes

I’m observing the same thing. Is it specifically the Funnel of the FollowerEntity? That’s what it appears like to me. The Search Tree looks correct to me but then it’s ignored.

It is the funnel simplification in the FollowerEntity.

This issue seems to still be present in version 5.2.1 :cry:
Is there any way to work around this issue using FollowerEntity?

Hi

Yes, sorry. I haven’t had time to work on this yet.

1 Like

Is this issue fixed in 5.3.3?

This seems to continue to be an issue. It would be useful to be able to utilize FollowerEntity’s ECS components without writing my own as from what I can tell Funnel seems to be tightly integrated into how the FollowerEntity operates. I’ve written a custom ITraversalProvider to handle weights and unfortunately I keep seeing the funnel modifier completely skip what should be untraversable nodes and essentially phase through impassible cells on a 2D Hex Grid.

From what I can tell from debugging the funnel modifier is far too aggressive on small grid cells and essentially breaks down and tries to shorten the path too aggressively with no way to tune this value.

It would be nice to see some modifications to FollowerEntity to be able to disable the built in funnel modifier or other tuning properties to allow for more rigid following of the graph if removal of the funnel modifier is not possible.

1 Like

This seems to be related here:

https://forum.arongranberg.com/t/the-entity-path-is-ignoring-the-tags-from-the-recastgraph

Quick conersation snippet:

When this patch drops can you let us know if you both continue to have this issue?

1 Like