Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

The synchronization between clients fails despite RPC calls and PhotonView

$
0
0
I want to do some kind of a dice game where each player can push a button and throw the dices into the scene. These dices are prefabs which are already in the scene and whenever I press a button, these are translated to an origin place from where they are thrown by a force into the camera view. My basic problem is here the synchronization. My toss button is already in the scene, I even attached a Photon View component to it which keeps track of the Button(Script) component. All the dices have a Photon View and a Transform View component.

Firstly, despite the fact that I have attached Photon View and used RPC calls in order to change the objects' state into the scene, only my MasterClient can give a general input which could be seen on all clients. When other client pushes the button, he can see the dices being thrown only on his sceen, whereas on the MasterClient one the dices remain in their previous position.

Moreover, I still cannot figure out why, sometimes when the MasterClient gives an input, the dices are thrown normally on his screen, but on the other clients' screen these dices appear to start floating irregularly . My guess is that it has something to do more with the Internet connection, but I also take into account a problem with the colliders.

Please help me figure out the problem and should you have suggestions such as links or videos, please post them. Still, I guess it would be equally useful if we could discuss on this matter.

Viewing all articles
Browse latest Browse all 15755

Latest Images

Trending Articles



Latest Images