addforce towards another object in unity2d code example
Example: unity addforce towards target
rigidbody.AddForce((target.position - transform.position) * multiplicationFactor);
rigidbody.AddForce((target.position - transform.position) * multiplicationFactor);