Trying click on a point and have a ball bounce away from that point. I am trying to do this in 2D so I have it ignoring the z component on the rigid body.

My Solution?

I think what I want to do is take the position of the ball (x,y), subtract the position of the mouse click (x,y) and use that to create a new vector to give the rigidbody as a force.

So Far:

I was able to get the position of the click into a Vector3.
I am not sure how to get the position of the ball into a Vector3.
I don’t know how to subtract the two, and if thats even the right idea.
I know how to give it a push in a direction using AddRelativeForce.

I was afraid to ask because I feel like I should understand more before attempting to get help.

The part that was screwing me up, and I am still not entirely sure how it “works” is subtracting one vector from another, and then normalizing. But my ball now flys away from my mouse on click, so its started.