22-11-2022, 07:24 PM
Disabling either the rope or solver makes the rope stop working.
I just want to be able to render the rope on the client side as it was sent from the server, steps to do this?
Currently I am applying the rope data on FixedUpdate
receivedList is a list of rope positions sent by the server, it syncs fine until i deactivate the solver
I just want to be able to render the rope on the client side as it was sent from the server, steps to do this?
Currently I am applying the rope data on FixedUpdate
Code:
private void FixedUpdate()
{
if (IsServer)
return;
for (int i = 0; i < ropeActor.particleCount; i++)
{
ropeActor.solver.positions[ropeActor.GetParticleRuntimeIndex(i)] = receivedList[i];
}
}
receivedList is a list of rope positions sent by the server, it syncs fine until i deactivate the solver