new NavMeshLoader()
Methods
-
load(url, options) → {Promise}
-
Loads a navigation mesh from the given URL. The second parameter can be used to influence the parsing of the navigation mesh.
Parameters:
Name Type Description urlString The URL of the glTF asset.
optionsObject The (optional) configuration object.
Returns:
Promise -A promise representing the loading and parsing process.
-
parse(arrayBuffer, url, options) → {Promise}
-
Use this method if you are loading the contents of a navmesh not via NavMeshLoader#load. This is for example useful in a node environment.
It's mandatory to use glb files with embedded buffer data if you are going to load nav meshes in node.js.
Parameters:
Name Type Description arrayBufferArrayBuffer The array buffer.
urlString The (optional) URL.
optionsObject The (optional) configuration object.
Returns:
Promise -A promise representing the parsing process.