Models
Lets say I am player 1 and I have avatar 1 and that avatar is being cloned in players 2 view., If I trigger a change in the model, that change also gets trigger in avatar 1 clone in players 2 view?
2 Replies
Hi @fgamez1020. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, that's correct. In Normcore, when you make a change to a model on your client (Player 1), that change is automatically synchronized to all other clients (including Player 2) who have a copy of that model.
This synchronization is handled by Normcore's datastore system. As explained in the Unity Client Architecture documentation:
"All state is synchronized using the room's datastore. If you need to move an object in the world, you change its position in the datastore. The datastore will automatically detect any changes and notify all clients connected to the room so they can update their world to match."
This means that when you (Player 1) trigger a change in your avatar's model, that change is propagated to the datastore, and then to all other clients in the room, including Player 2. As a result, the clone of your avatar in Player 2's view will update to reflect the changes you made.
This synchronization happens automatically, without you needing to write additional code to update other clients. It's part of Normcore's core functionality to keep all clients' views of the shared virtual space consistent.
However, it's important to note that depending on network conditions, there might be a slight delay before Player 2 sees the changes you've made. Normcore uses various techniques to smooth out these updates and make the experience as seamless as possible.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@1053407831916822528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.