Selects the nav mesh strategy that is used by all aframe-locomotion components. This component should be added to the scene if you want to make use of nav mesh based functionality. Once configured, nav meshes need to be marked using the nav-mesh component.


Property Description Default Value
strategy Either simple or scan. The simple strategy allows to check if movement is valid based on the nav-mesh in a binary fashion (movement is either valid or not). The scan strategy falls back to alternatives that are slightly to the side of the movement. This allows sliding across walls. scan


Add the nav-mesh-strategy component to the scene

<a-scene nav-mesh-strategy>
    <!-- entities with nav-mesh component -->

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.