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.
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.
0
Best Answer
-
Hi
When object is in scene the master client will be its owner so if you send its data with onphotonserializedveiw only master client writes and others read. commonly in this situations owner of ball should be changed. in fact each client that collide with ball should be the owner and send ball data to other.5
Answers
-
Hi
When object is in scene the master client will be its owner so if you send its data with onphotonserializedveiw only master client writes and others read. commonly in this situations owner of ball should be changed. in fact each client that collide with ball should be the owner and send ball data to other.5