What should i use to synchronise movement with OnPhotonSerializeView?

Options

Hello,

To synchronise the players' movements, I am currently lerping their positions to a networkPosition Vector3 sent by the owner with OnPhotonSerializeView.

Using lerp makes their movement way too smooth and not snappy.

Is there any other way I can synchronise the players' movement and make it look good?

Answers

  • Tobias
    Options

    If the PhotonTransformView does not work well for your use case, you can try the PhotonTransformViewClassic or come up with your own one. It is not expected to be a solution for every case.

    We heard good things about the "Smooth Sync" package in the Asset Store. It supports PUN 2 and might help, if you can't spend time on the topic.