nav-mesh-strategy
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.
Properties
Property | Description | Type | 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. |
string |
scan |
Example
Add the nav-mesh-strategy
component to the scene
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.