Search Unity

Object glitch when spawned on the client

Discussion in 'Multiplayer' started by Michael_Waltham, Sep 2, 2015.

  1. Michael_Waltham

    Michael_Waltham

    Joined:
    Aug 20, 2014
    Posts:
    31
    When I spawn an object on the network, I Instantiate it on the server and then use NetworkServer.Spawn to notify all clients to spawn the object.

    However, when this object (a projectile to be precise) is eventually spawned on the client side, it seems to be spawned at the wrong position for a split second and then quickly correct itself and move to the correct position as is reflected by the server. Is there something I am not doing? Is this normal?
     
  2. HugoZandel

    HugoZandel

    Joined:
    Mar 11, 2014
    Posts:
    52
    I'm experiencing the same thing. It looks like the objects are spawned at 0,0,0. This is problematic because at 0,0,0 in my game, there's an object that kills characters. I would recommend shifting everything in your scene.