Adding a force in the direction of an object.

I am adding a force to object A towords object B by wrighting

rigidbody.AddRelativeForce(target.position * force);

Im using relitive forces because i whant it to moove in lical not global space.

But for this to work i must use

transform.LookAt(target);

But i dont whant to have to rorait the object i whant to rotat the direction of the force towards object B, how can i do this or if not what can i do to give the same effect.

Couldn’t you just get the vector going from your source to your target and use that with AddForce like

dir = target.transform.position - transform.position;
dir = dir.normalized;
rigidbody.AddForce(dir * force);

But will it update the direction if it is in the update function without rotaiting the object, and can you explain how it works.

dir = target.transform.position - transform.position;
(is this a var in which holds a vector3 of the target?)

dir = dir.normalized;
(What dose normalized do to dir.)

rigidbody.AddForce(dir * force);
(and so im gesing that this adds the force to dir which is the set vector3 multiplyed by the force that i set.)