24-05-2021, 08:05 AM
(24-05-2021, 07:41 AM)josemendez Wrote: 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
Can you give a sample code for saving and loading the rope state using particles API?