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 | Default Value |
---|---|---|
This component has no properties |
Usage
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 addmaterial="visible: false"
or hide the mesh in some other way.