1. We've introduced thread tags, search within a thread and similar thread search. Read more here.
    Dismiss Notice
  2. Learn how you'll soon be able to publish your games to China in four simple steps with Xiaomi. Sign up now for early access.
    Dismiss Notice
  3. Get further faster with the Unity Plus Accelerator Pack, free for new Unity Plus subscribers for a limited time. Click here for more details.
    Dismiss Notice
  4. We've released our first Timeline Experimental Preview, our new tool for creating cutscenes and more! To check it out click here.
    Dismiss Notice
  5. Unity 5.5 is now released.
    Dismiss Notice
  6. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  7. Unity 5.6 beta is now available for download.
    Dismiss Notice

Ball in online pong game not well synchronized

Discussion in 'Multiplayer Networking' started by Rayeloy, Mar 19, 2017.

  1. Rayeloy

    Rayeloy

    Joined:
    Feb 12, 2017
    Posts:
    1
    Hello, I've just started to learn Multiplayer Networking in Unity and I'm trying to turn a complicated pong game I was already developing to online (P2P if possible). I want to know if my ball object needs to be a spawnable by the server. At the moment it is, and It has a Network Transform component with syc rigidbody2d with the maximum value of network send rate. However, the ball is only in the correct position in the host player, the other player sees the ball with lag. How can i correct this? If you need any more information tell me.
     
    Last edited: Mar 19, 2017
  2. voncarp

    voncarp

    Joined:
    Jan 3, 2012
    Posts:
    123
    There will always be latency. Generally, you want to lerp differences between server positions and client.