Sync transform of a scene object. Please help!

Options
Hello,
I am a making multiplayer online game with photon in which players control one ball which is already in the scene.

[PROBLEM]
I am syncin the ball s transform through that lerping method. But only on the masterClient it is getting synced smoothly. On other clients the ball lags when some 1 shoots it.

I am frustrated n can't figure out how to this problem. Please help if u can!
Or if someone can just tell me what to do or what I am doing wrong that will be great.

Thanks for your time. :)

Comments

  • Serphimera
    Options
    Hi @HelloItsKayHere,

    how do you compute the transform? Do you send an request to the server with the actual position and physical data and compute on the serverside or do you compute on the client that "shooting" and transmit the resulting transform to the other clients?

    In the first scenario the "lag" should be very small as all clients get their update nearly simultanously. On the other scenario there the "lag" is obvious as the shooting client get's the answer to the operation "in time" and for all other clients the answer needs to be transferred and displayed by the engine.