[Question] Adding custom logic to follower entity

Hi, I’ve been testing the new followerEntity and I’m not sure how to go around adding some custom logic to it as the class itself is sealed.

For example if I trap an agent with another agent next to it (event with local avoidance enabled) and they collide (I know the entity system is not aware of this) they will keep colliding and jitter, Should I make an independent “movement” script to slow down or stop the actor in these cases? or is there another strategy that is preferred here?


Yes, basically you should use composition over inheritance. So you can use another script (or an ECS system) to tweak the parameters of the FollowerEntity as it moves.

1 Like