Move Object A towards Object B at a definite speed

I want Object A to move towards Object B at a certain speed that is determined by the variable speed. I do also want it not to slow down upon nearing the target, or speed up when further from. It is to move only at a single, non-changing speed, and with the direction Object A is facing being of no consequense. If possible, answer so simply that a person who did not even understand the Unity Reference page can understand. Thank you.

Current script on ObjectA.

var speed = 4.0;
var ObjectB:GameObject;

function Update () {


Please do not link me to reference pages. Because they are never tailored to fit my situation. Thank you.


The easiest way out of it is to use iTween. You can roll your own of course.

Using the moveTo function you would end up with something like this:

Create a c sharp script and name it "ConstantSpeedMove", edit it and paste the script below.

using UnityEngine;
using System.Collections;

public class ConstantSpeedMove: MonoBehaviour {

    public Transform target;
    public float speed = 1f;

    void Start () {

        if (target==null){
            Debug.LogWarning("ConstantSpeedMove is missing a transform target");

    void onCompleteFromiTween () {

        Debug.Log("ConstantSpeedMove done");





ps: Reference and help is never tailored to fit your exact need, rather they help you understand the function and feature so that you can then build it exactly how you want. Just felt the need to point that out :)