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