Support Forum

How to make a RVOObstacle working on 2D?

Hi

I am using RVO for 2d game, and trying to add RVOSquareObstacle, but it seams only for 3D.
How to make a RVOObstacle working on 2D? It should be good if there is a code example. : )

Hi

I’m in the process of deprecating the RVOSquareObstacle anyway, I would recommend that you use other approaches (such as updating the graph, see https://arongranberg.com/astar/docs/graph-updates.php). The RVOSquareObstacle had several limitations and usually didn’t work as well as you wanted.