Search Unity

[help] extra unwanted movement when setting network transform to active on net id object

Discussion in 'Multiplayer' started by enhawk, Sep 17, 2017.

  1. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    I'm spawning an object that moves a certain distance using rigidbody velocity.

    When it has travelled a certain distance, I'd like to activate network transform and set the velocity to zero.

    The problem I'm having is when it makes the change, it zips back for a few frames when zips to the position it was in when I made the change.

    I've tried a few things but nothing seems to work, run out of ideas. How can I enable the network transform component without any inherited movement? (make it's
    targetSyncPosition the transform position when enabling network transform (rigidbody)
     
    Last edited: Sep 17, 2017