# RecastJSPlugin about outside of navmesh

**URL:** <https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536>\
**Category:** Questions\
**Created:** [May 19, 2022, 10:57am UTC](https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536 "2022-05-19T10:57:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![woniubushiniu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/woniubushiniu/32/22130_2.png) [@woniubushiniu](https://forum.babylonjs.com/u/woniubushiniu)\
**Post date:** [May 19, 2022, 10:57am UTC](https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536/1 "2022-05-19T10:57:12Z")

</div>

i create a small ground and a big ground,the small ground is a navmesh,when i click big ground which outside out navmesh,i’ll get zero point ,i use getClosestPoint to get point.Is there any other way here to get the position of the nearest point on the navmesh，when i click big ground which outside of nanmesh?

> **[Babylon.js Playground](https://playground.babylonjs.com/#TN7KNN%23279)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 19, 2022, 1:41pm UTC](https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536/2 "2022-05-19T13:41:24Z")

</div>

Cc @cedric

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [May 19, 2022, 9:35pm UTC](https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536/3 "2022-05-19T21:35:52Z")

</div>

Note that Cedric is on vacation and may not respond until he returns at the end of this month.

---

<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:** [May 30, 2022, 1:55pm UTC](https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536/4 "2022-05-30T13:55:15Z")

</div>

You can change the query extent value to a bigger value so your picked mesh hitpoint will fit:

> **[RecastJSCrowd | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.recastjscrowd#setdefaultqueryextent)**
>
> Recast detour crowd implementation \[API\]

---

<div class="post-metadata">

**Author:** ![woniubushiniu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/woniubushiniu/32/22130_2.png) [@woniubushiniu](https://forum.babylonjs.com/u/woniubushiniu)\
**Post date:** [June 1, 2022, 8:42am UTC](https://forum.babylonjs.com/t/recastjsplugin-about-outside-of-navmesh/30536/5 "2022-06-01T08:42:19Z")

</div>

thank you
