Navigation obstacles cannot work without Crowd

Hello! I met a small bug when using computePath with navigation obstacles.

When creating a crowd, the obstacle is working using the compute path:

image

However, if I comment this line:

The path generated is not working.

image

Here is the example code

This behavior may be related to the internal implementation and is unexpected. Some users who just use .computePath may assume the obstacle does not work for computing paths. However, if he adds .createCrowd, it works. An addition to the documentation might improve it!

1 Like

cc @Cedric

I’ve never done this test! Thank you for reporting it. Indeed, it’s an implementation matter. I’m updating the documentation.

4 Likes