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 url
String The URL of the glTF asset.
options
Object 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 arrayBuffer
ArrayBuffer The array buffer.
url
String The (optional) URL.
options
Object The (optional) configuration object.
Returns:
Promise -A promise representing the parsing process.