Imagine a path and two opposing waves of units are moving toward each other. When two opposing units are within line of sight(3f), they change target from the end of path to enemy unit in sight, and move toward new target. When they are within attack range(0.4f), I set locked property of RVOController to true in order to stop those units. This works well for the first two units. But, when the following units are moving toward already stopped units, they slow down significantly. How to solve this problem? Is there any better way to stop units when they are attacking?
I figured it out. Just set radius of rvoController to 0 when not moving.
Setting neighbourDist to a smaller value works even better. This variable should be exposed in the RVOController.
Great that you found a solution.
The neighbourDist will be exposed in the next version.
Is there a way to do this in the current version? I don’t see the neighbourDist variable anymore.
@doogog
I think that variable was renamed to ‘agentTimeHorizon’.