how to add force to a rigidbody towards the direction of another object code example
Example: unity addforce towards target
rigidbody.AddForce((target.position - transform.position) * multiplicationFactor);
rigidbody.AddForce((target.position - transform.position) * multiplicationFactor);