24-05-2021, 07:41 AM
(This post was last modified: 24-05-2021, 07:42 AM by josemendez.)
(24-05-2021, 07:32 AM)pmike Wrote: Hello! Does anyone have any code or ideas for serializing/deserializing a rope over a network?
You do this just like you'd do with any other object: send positions and velocities over. In Obi's case, particle positions and velocities.
If you're using UDP, passing a timestamp would be a good idea too. Client side you can implement dead reckoning by just letting the simulation run in-between snapshots.
You can get/set per-particle data (positions, velocities, etc) using the particles API:
http://obi.virtualmethodstudio.com/tutor...icles.html