Zip download of Navigation Mesh sample from Playground does not work

I downloaded the Navigation Mesh example linked from the documentation as a zip after displaying it in Playground.

However, it did not work locally with the following error.

ReferenceError: Recast is not defined

Perhaps it is because the recast.js dependency is missing in the zip.

cc @RaananW

1 Like

Add recast to downloadable playgrounds by RaananW · Pull Request #13980 · BabylonJS/Babylon.js (github.com)

A second issue is that this file is also missing from the download - Babylon.js/packages/tools/playground/public/workers/navMeshWorker.js at master · BabylonJS/Babylon.js · GitHub

But this is something we won’t be able to include in the download even after this PR. You will need to add it yourself

2 Likes

Thanks for the quick fix.

But this is something we won’t be able to include in the download even after this PR. You will need to add it yourself

It’s inevitable that samples that depend on external files need to be modified by hand.
It might be good to have a link on the documentation page to a version of the sample that does not use a web worker.

2 Likes

cc @Cedric

1 Like

Better late than never :slight_smile:

4 Likes