refactor: update event handling in mechanics components to use socket communication
This commit is contained in:
@@ -54,7 +54,7 @@ export default function NavMeshDetails({
|
||||
|
||||
const debugDrawer = new DebugDrawer();
|
||||
debugDrawer.drawNavMesh(navMesh);
|
||||
scene.add(debugDrawer);
|
||||
// scene.add(debugDrawer);
|
||||
} catch (error) { }
|
||||
};
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ const FloorItemsGroup = ({
|
||||
}
|
||||
gltfLoaderWorker.postMessage({ floorItems: data });
|
||||
} else {
|
||||
console.log('data: ', data);
|
||||
gltfLoaderWorker.postMessage({ floorItems: [] });
|
||||
loadInitialFloorItems(itemsGroup, setFloorItems, setSimulationPaths);
|
||||
updateLoadingProgress(100);
|
||||
|
||||
Reference in New Issue
Block a user