Search Unity

  1. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  2. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  3. Unity 2017.1 is now released.
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  6. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    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:
    129
    There will always be latency. Generally, you want to lerp differences between server positions and client.