src/core/AssetManager.js
/**
	* Loads the navigation mesh from the backend.
	*
	* @return {AssetManager} A reference to this asset manager.
	*/
Loads the navigation mesh from the backend.
@return {AssetManager} A reference to this asset manager.
Loads the navigation mesh from the backend . @return { AssetManager } A reference to this asset manager .
_loadNavMesh() {
		const navMeshLoader = this.navMeshLoader;
		const loadingManager = this.loadingManager;
		loadingManager.itemStart( 'navmesh' );
		navMeshLoader.load( './navmeshes/navmesh.glb' ).then( ( navMesh ) => {
			this.navMesh = navMesh;
			loadingManager.itemEnd( 'navmesh' );
		} );
		loadingManager.itemStart( 'costTable' );
		fetch( './navmeshes/costTable.json' )
			.then( response => {
				return response.json();
			} )
			.then( json => {
				this.costTable = new CostTable().fromJSON( json );
				loadingManager.itemEnd( 'costTable' );
			} );
		return this;
	}
_loadNavMesh ( ) { const navMeshLoader = this . navMeshLoader ; const loadingManager = this . loadingManager ; loadingManager . itemStart ( 'navmesh' ) ; navMeshLoader . load ( './navmeshes/navmesh.glb' ) . then ( ( navMesh ) => { this . navMesh = navMesh ; loadingManager . itemEnd ( 'navmesh' ) ; } ) ; loadingManager . itemStart ( 'costTable' ) ; fetch ( './navmeshes/costTable.json' ) . then ( response => { return response . json ( ) ; } ) . then ( json => { this . costTable = new CostTable ( ) . fromJSON ( json ) ; loadingManager . itemEnd ( 'costTable' ) ; } ) ; return this ; }
Loads the navigation mesh from the backend.
Loads the navigation mesh from the backend .
//