Skip to content

nav-mesh

This component marks an object as a nav mesh, which can be used in motion. This component only has an effect when the nav-mesh system is activated by picking a nav-mesh-strategy.

Properties

Property Description Type Default Value
This component has no properties

Example

Mark any entity that holds a navigation mesh:

<a-entity gltf-model="url(assets/navmesh.glb)" nav-mesh></a-entity>

Note: In many cases the navigation meshes should not be visible. The nav-mesh component doesn't handle this for you, so make sure to manually add material="visible: false" or hide the mesh in some other way.

Source

src/nav-mesh/nav-mesh.component.ts:18