mikewesthad / navmesh

A plugin for path-finding in JS using navmeshes, with wrappers for Phaser 3 and Phaser 2
MIT License
356 stars 40 forks source link

Navmesh plugin is not defined #60

Open mistertoenails opened 2 years ago

mistertoenails commented 2 years ago

I have the scenes for my game being dynamically added at runtime when the world is generated, and the following game config: var config = { type: Phaser.AUTO, width: 1260, height: 800, scene: [Loading], plugins: { global: [ { key: "navmesh", plugin: PhaserNavMeshPlugin, mapping: "navMeshPlugin", start: true, }, ], }, physics: { default: "arcade", arcade: { debug: false, }, }, render: { pixelArt: true, }, }; When I try to create a navmesh, it gives me this error: TypeError: Cannot read properties of undefined (reading 'buildMeshFromTilemap'). Any ideas for why this is happening?