# Navigation plugin

**URL:** <https://forum.babylonjs.com/t/navigation-plugin/36978>\
**Category:** Feature requests\
**Created:** [December 29, 2022, 1:43pm UTC](https://forum.babylonjs.com/t/navigation-plugin/36978 "2022-12-29T13:43:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nevergrind](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nevergrind/32/3792_2.png) [@Nevergrind](https://forum.babylonjs.com/u/Nevergrind)\
**Post date:** [December 29, 2022, 1:43pm UTC](https://forum.babylonjs.com/t/navigation-plugin/36978/1 "2022-12-29T13:43:23Z")

</div>

Would be nice to be able to concatenate 2 (or more) navmesh data.  
The idea would be to generate navmesh data for tiles then concatenate them according to coordinates.  
Something like:

> let tile1NavMeshData = navPlugin.createNavMeshData(tile1, navParams);  
> let tile2NavMeshData = navPlugin.createNavMeshData(tile2, navParams);  
> // where createNavMeshData would return an uint8array

Then when placing tiles we would do:

> tile.clone().position = new BABYLON.Vector3(0,0,0);  
> tile.clone().position = new BABYLON.Vector3(5,0,0);  
> tile.clone().position = new BABYLON.Vector3(10,0,0);

> navPlugin.addFromTiledNavmeshData(0,0,0, tile1NavMeshData);  
> navPlugin.addFromTiledNavmeshData(5,0,0, tile2NavMeshData);  
> navPlugin.addFromTiledNavmeshData(10,0,0, tile2NavMeshData);

Generating navmeshes is pretty expensive, so this would ne a nice solution.  
(i know we have buildFromNavmeshData but can be done for tiles?)  
As i know @Cedric is working on the navigation plugin.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 2, 2023, 1:59pm UTC](https://forum.babylonjs.com/t/navigation-plugin/36978/2 "2023-01-02T13:59:37Z")

</div>

Assigned @Cedric on January 2, 2023, 1:59pm UTC



---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [January 3, 2023, 10:48am UTC](https://forum.babylonjs.com/t/navigation-plugin/36978/3 "2023-01-03T10:48:36Z")

</div>

I have to check what’s possible with recast and multiple nav meshes.  
I believe it’s possible to bridge between navmesh. Agent will teleport from 1 navmesh to the other.  
Can you elaborate on your use case for that?  
Usually, on the web, experiences with a navmesh have a moderate size and apart from obstacles, the need for dynamics and/or bigger environment is not common.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 22, 2023, 8:43am UTC](https://forum.babylonjs.com/t/navigation-plugin/36978/4 "2023-09-22T08:43:18Z")

</div>

Unassigned @Cedric on September 22, 2023, 8:43am UTC


