Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Photon Serialization - Ball Flickers!

$
0
0
Hallo,

I was able to send postion and rotation of a billiard ball to a second player, but the ball on the other players side, who receives the data, flickers! Like it goes to the origin position and back...

Here is my code:

Code (csharp):
  1.  
  2. void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info){
  3.  
  4.    
  5.  
  6.         if (stream.isWriting) {
  7.  
  8.             stream.SendNext (transform.position);
  9.             stream.SendNext (transform.rotation);
  10.  
  11.             //Debug.Log("saljem podatke: ");...
Photon Serialization - Ball Flickers!

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>