27-09-2023, 06:01 PM
(27-09-2023, 04:25 PM)fevzi Wrote: Hello,
Im trying to sync the rope between client and server but its still kind of weird.
The rope is not getting tense on either the client or the server and the players cant drag the other player properly.
Getting/setting particle properties in FixedUpdate() will not work, since the order in which Unity calls FixedUpdate for different objects is undefined. The solver might be updated before or after you get/set the data, leading to inconsistent results.
Use one of the solver callbacks to make sure to always get/set particle data at the same point in time. ObiSolver. OnEndStep is the preferred way to do this, as it is called whenever the solver has finished a physics step.
kind regards,