Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

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

  1. NimbleSprite

    NimbleSprite

    Joined:
    Nov 3, 2017
    Posts:
    34
    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