A* Pathfinding Project

How to disable RVO in 4.3.15? [SOLVED]


#1

Hi!

I was able to disable/enable rvo script when I need in 4.2 but in 4.3 this cause crashes in density job. Is there a way to do this with no crashes? Thanks!


Cannot disable/enable RVOController component at runtime - Version 4.3.10
#2

Okay, I figured it out! In AIBase OnUpdate I changed:

  • for (int i = 0; i < count; i++) agentsWithRVOControllers += ((components[i].rvoController != null && components[i].rvoController.rvoAgent != null) ? 1 : 0);
  • if (agent.rvoController != null && agent.rvoController.rvoAgent != null) - 2 lines

and it works!


#3

I was having same problem and did work arounds but was not pretty. I will have a look at this and hoping Aron can incorporate a similar fix in future updates. Thanks.


#4

Yep. I’ve fixed this already in my dev version. The fix will be included in the next update.