0
Answered

Can Chronos work with NavMeshAgent Avoidance?

michel 3 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Please see attached gif.

NavMeshAgent has Obstacle Avoidance set (0.5), and trying to reach target in center of group.

When a NavMeshAgent speed is increased by increasing the Clock Timescale, it packs in tight to try to reach its target. Then when I pause the Clock, speed is set to 0, and all the rigidbodies seem to be pushed to the correct avoidance radius.

Is there any way for NavMeshAgents to maintain the same avoidance radius at different timescales?

Chronos Version:
2.4.10
Unity Version:
2017.1.0f3
Answered

Hi Michel,

Sorry for the very late reply on this.

Chronos only affects the speed and angularSpeed properties of the NavMeshAgent. It seems like what you're seeing is a Unity quirk of how avoidance radius is actually calculated. It appears that it is being reduced behind the scenes when the speed of the agents is higher -- not sure if that's "by design" or a bug!