1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. We’re giving 2017.1 beta testers a chance to win t-shirts and a Nintendo Switch. Read more on the blog.
    Dismiss Notice
  4. We want to know how you learned Unity! Help us by taking this quick survey and have a chance at a $25 gift card
    Dismiss Notice
  5. Are you an artist or level designer going to Unite Europe? Join our roundtables there to discuss artist features.
    Dismiss Notice
  6. Unity 5.6 is now released.
    Dismiss Notice
  7. Check out all the fixes for 5.6 on the patch releases page.
    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:
    126
    There will always be latency. Generally, you want to lerp differences between server positions and client.