Skip to content
Snippets Groups Projects
Commit a51c3c29 authored by Greg Fodor's avatar Greg Fodor
Browse files

WIP

parent 2b7b51b3
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,8 @@ AFRAME.GLTFModelPlus.registerComponent("nav-mesh", "nav-mesh", (el, _componentNa
AFRAME.GLTFModelPlus.registerComponent("networked", "networked", (el, componentName, componentData) => {
// Mark this to act as a "full sync" from the GLTF scene itself, to avoid taking ownership.
el.firstUpdateData = componentData;
el.setAttribute(componentName, componentData);
componentData.isFirstSync = true;
componentData.components = [];
console.log(componentData);
NAF.connection.entities.updateEntity(componentData.owner, "u", componentData);
});
......@@ -8,6 +8,7 @@ import { patchWebGLRenderingContext } from "./utils/webgl";
patchWebGLRenderingContext();
import "three/examples/js/loaders/GLTFLoader";
//import "three/examples/js/exporters/GLTFExporter";
import "networked-aframe/src/index";
import "naf-janus-adapter";
import "aframe-teleport-controls";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment