Comments (5)
Yes its definitely possible to move objects (as long as your client currently owns them) using super-hands. I suspect you are not syncing the correct entity's position and rotation. By default only the top-level entity's position and rotation are synced. If you provide an example showcasing what you think should work I can provide more help. (check out glitch.com for an easy way to make an example).
from networked-aframe.
Hi Hayden. thanks for the quick reply! Here's an example which is just a bare-bones remix of your basic naf glitch example.
https://glitch.com/edit/#!/bio-gas?path=public/index.html
I was trying to sync a box so that it can be dragged by both users or just one and the other is still able to see the action.
from networked-aframe.
Note that one tricky bit about super-hands in particular is that aframe-physics-system
uses a quaternion
component to do its rotation, so you will specifically need to sync that. See https://github.com/mozilla/mr-social-client/blob/experiment/super-hands/src/network-schemas.js#L30
from networked-aframe.
Hi netpro2k, thanks for the response. Adding the quaternion component did help out but apparently the problem was with my code. I just found it and saw that i wasn't adding the progressive-controls component and grabbable components to the correct entities. I was putting them all together but instead had to seperate them.
<a-entity id="mine" grabbable networked="template:#box-template;showLocalTemplate:true" position="0 1 0" >
</a-entity>
I'm still having a problem with syncing and the only way it worked was with a glitch in the java o.o (i think the second square brace shouldn't exist at the end)
var boxSchema = {
template: '#box-template',
components: [
"position",
"rotation",
"scale",
"rotation",
"quaternion",
]
]
};
NAF.schemas.add(boxSchema);
but ill come figure it out. Thanks so much for all the help!
from networked-aframe.
You have rotation
in there twice, you actually don't need it at all since the quaternion
component actually removes rotation
. Also you are correct, there is an extra ]
var boxSchema = {
template: '#box-template',
components: [
"position",
"scale",
"quaternion"
]
};
NAF.schemas.add(boxSchema);
from networked-aframe.
Related Issues (20)
- Be in networked aframe but not be there? HOT 4
- didn't manage to get hand tracking working HOT 5
- User in new position with each refresh?
- Add ability to add networked entity to non-networked parent HOT 7
- Share Screen Issue HOT 1
- stuck with npm i on a RPi Zero HOT 5
- Write a "how it works" documentation HOT 12
- Not a issue but really need some help. Trying to add pre-text pharses above the character. HOT 1
- networked-video-source should respect the video aspect ratio HOT 1
- Create a web component to show connected users HOT 10
- [networked-audio-zone] Private audio zone HOT 1
- https for audio? HOT 1
- Audio chat example low volume? HOT 10
- Deactivate synchronization for child nodes? HOT 9
- Deletion of a component in the NAF schema is not replicated HOT 2
- Updated state not being replicated to new joiners to a scene HOT 2
- Fix networked-video-source has a bad color space with a-frame v1.5.0
- networked-hand-controls issues with aframe-v1.5.0 HOT 2
- Alternative using binary instead of json for updates HOT 3
- Networked fullbody tracking HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from networked-aframe.