I thought this was working for the longest time because I left the time param as 1, which does work. It just does it too fast so I slowed down the step. And now it just isn’t completing the interpolation
function Start () {
initialPos = transform.position;
recoilPos = transform.position - Vector3(-3,0,0);
transform.position = recoilPos;
function Update() {
print(“push”);
transform.position = Vector3.Lerp(recoilPos, initialPos, 0.1);
The object moves maybe 3/10 of the distance and then stops, while “push” continues to print. Push is just to return from recoil, this same issue happens going from initial to recoil also
This is such a simple issue but I’m spending more time than i’d like to thinking about it lol… Usually interpolating is straightforward, I’ve done it tons before