Lerp in direction facing.

Hi all,

I’m trying to use MovePosition to move in the direction facing whilst also lerping.
I do:

Vector3 pos = Vector3.Lerp(transform.position + transform.forward, character1.transform.position, MoveSpeed * Time.deltaTime);
rigidbody.MovePosition(pos);

But it not working as I would expect.
Originally I was being bad and not using move position but just

transform.position += transform.forward * MoveSpeed * Time.deltaTime;

Which worked fine.

Any help appreciated

Cheers

If you have a look at the documentation of Vector3.Lerp, you will find that using “MoveSpeed * Time.deltaTime” somehow makes no sense or at least a could not find the reason for that. I am also not sure about the reasons for the other two parameters. It would help if you could provide some details.