(solved) Local avoidance + grid movement

I’m wondering which part of the code moves an object when its “zone” is overlapping with another. I’ve spent some time messing with the RVOController, especially lines 305 and 307, but I’m not making a lot of progress with it.

My grid code uses normalized vectors to decide the direction of movement, so I don’t need to change everything about local avoidance. I just need to feed it a direction to move in that is away from nearby objects.

I hope this is clear. Thanks.

So I ended up figuring this out.

Within RVOAgent there is a velocity variable, you can access this from RVOController and use it however you want (in terms of customizing local avoidance). Just remember to disable the original local avoidance code in RVOAgent.