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:
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.