Search Unity

Rotation not syncing

Discussion in 'Multiplayer' started by WilliamKurtz, May 21, 2017.

  1. WilliamKurtz

    WilliamKurtz

    Joined:
    Jun 4, 2015
    Posts:
    2
    Hi, I'm doing this tutorial https://unity3d.com/learn/tutorials/topics/asset-store/merry-fragmas-multiplayer-fps-part-2 to make my multiplayer FPS game.
    I've modified the shooting script to shoot prefab bullets, everything working great, but the rotation on the bullet spawn is not corret on the client side.

    Everytime the server shoot, the bullet behaves as it should on the server and on the client side,
    but when the client shoot the have only horizontal roatation, it doesnt go up or down,

    What parts of the my game I need to post so someone of you guys can help me.

    Thank you already.
     
  2. WilliamKurtz

    WilliamKurtz

    Joined:
    Jun 4, 2015
    Posts:
    2
    Never mind,

    I've discovered that my root game object was missing an Network transform Child.

    Inside the NetworkTransformChild you have to reference, the child game object.

    If you need to synchronize more than one child object you sould put one NetworkTransformChild for each child GameObejct.

    Thanks!