Obi Official Forum
Multiplayer ready? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: Multiplayer ready? (/thread-3292.html)



Multiplayer ready? - Rexima - 26-01-2022

Hello,

i`m interested into this softbody asset and i want to ask if it's possible to synchronize the softbody over the network?


RE: Multiplayer ready? - josemendez - 26-01-2022

(26-01-2022, 08:17 AM)Rexima Wrote: Hello,

i`m interested into this softbody asset and i want to ask if it's possible to synchronize the softbody over the network?

Hi there!

Sure! this has always been possible, you can synchronize literally any data over the network. However note this is not done automagically. Not by Obi (since it's a physics engine, not a networking solution) and not by any networking solution (since they know nothing about Obi).

Using the networking framework of your choice, you must sync particle data between host/server and clients. Here's the API to get/set particle positions, velocities, etc:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html

As a networking solution, a good starting point is Unity's netcode:
https://docs-multiplayer.unity3d.com/docs/getting-started/about/index.html

kind regards,


RE: Multiplayer ready? - Rexima - 26-01-2022

Thank you very much for the quick answer.