SpaghettiCoding Posted April 6, 2021 Share Posted April 6, 2021 Hi guys! I make rpg game and try to implement pathfinding by using navmesh plugin (https://github.com/mikewesthad/navmesh/blob/master/tiled-navmesh-guide.md) there is a nice tutorial and i follow it but i have problem, no matter what coordinates i pass it always return null (i build navmesh in Tiled) there is a code: const objectLayer = this.tilemap.getObjectLayer("navmesh"); console.log(objectLayer); const navMesh = this.navMeshPlugin.buildMeshFromTiled("mesh", objectLayer, 5); console.log(navMesh); const path = navMesh.findPath({ x:1500, y: 2500 }, { x: 1600, y: 2600 }); console.log(path); that what i have in console: i tried to pass different coordinates and find path to mouse click. it always return null. if i add methods for visially debugging navmesh plugin it game looks like: Has anyone encountered similar problems? This plugin has clear tutorial and i'm soo confusing that it doest'n work for me. I appreciate any guess. Link to comment Share on other sites More sharing options...
Recommended Posts