Help with Transform.position

how I add a speed of movement towards a new vector with the function transform.position.

What I want is that when the position change, this not be sudden but rather wear a movement speed to the specific point.

If possible in c # I currently work with this code.

Sorry for my english. I speak spanish

In its most simple form

speed += accelerationRate * Time.deltaTime;
if (speed > maxSpeed)
    speed = maxSpeed;

transform.position += transform.forward * speed * Time.deltaTime;
2 Likes