Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Is Vector3.Lerp deterministic? (simplified this post)

Discussion in 'Multiplayer' started by NimbleSprite, Dec 7, 2021.

  1. NimbleSprite


    Nov 3, 2017
    Thanks for any input, I have edited this post so it's a bit more straightforward.

    I am just wondering if the Vector3.Lerp() function can be expected to behave deterministically for use in a lockstep model when using a fixed timestep and a fixed distance travelled per sim tick. We want units to move along splines a fixed distance per tick and for the resulting V3 to be used as the unit's new transform.position. The visuals are already handled with a separate Lerp, we are not worried about that. Thanks again!
    Last edited: Dec 8, 2021