Search Unity

Synchronized terrain positions theory

Discussion in 'Multiplayer' started by Resilo, Oct 11, 2018.

  1. Resilo

    Resilo

    Joined:
    Dec 8, 2016
    Posts:
    139
    So I have a client server set up for my game. The issue im having is that the movement and player position are synchronized correctly between clients and server.

    However the position of buildings etc are not

    How would you configure for example a wall so that its position synchronizes from the server to the client correctly?

    iv'e included a diagram to further explain the situation encase anyone is confused
     

    Attached Files:

  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Well, how are you currently placing your buildings? You should either place them on the server and sync those placements to the clients (such as instantiate/spawn on server so they spawn on the clients in the same place), or if you place them randomly you could send the random seed the server used to the clients so they will be placed as the server placed them.