Question by
$$anonymous$$ · May 23, 2020 at 07:40 PM ·
lerpcarcar gamepingpong
Progressive lerp?? (reupload)
Hello
I am trying to make an effect with lerp, which consists of:
It starts at one value, goes to another value, and ends at a last value, something like this (watch the second 0:11 of this video, when the car makes gear changes): https://www.youtube.com/watch?v=tJf6AZ01Mbg
Basically 3 values instead of 2, But I do not know how to do it
My script is this (is a common ping pong):
FloatVariable = Mathf.Lerp(Value1, Value2, Mathf.PingPong(Timer, Duration) / Duration);
Thanks you!
Comment
Your answer
Follow this Question
Related Questions
changing rpm when shifting 1 Answer
Lerp Confusion 1 Answer
stop moving car 1 Answer
simple car drift system 0 Answers
Car getting Stuck when having 0 velocity,Rigidbody getting Stuck while having 0 velo. 0 Answers