Yes, those are the black arrows from my picture. Their values are up to you (tweaked on game design).
The thing is. The A and B.. is that the edges?
The values I used in the graph were Vector2( -0.707106781, -0.707106781 ) and Vector2( -0.707106781, 0.707106781 ) which is basically a normalized normal inclined -45° and 45° respectively
There is a version that takes a Vector2. But even if it weren't, you actually just need to lerp every component of the vector (X and Y coordinates) individually (in other words, two lerp calls).
And how should i insert them into this method? Since it parameters is float?A value between 0 and 1. Think of it like 0% and 100%.
And what is this Amount in the function?
You can use the distance in the Y component from the position of the ball to the bottom edge of the paddle divided by the height of the paddle to get the value in the [0; 1] range.
Now I did all the job for you. You have the tools now. Time for you to think it through, experiment and figure some the few remainders for yourself. We learn through failure, not success. I only helped you because you seemed really stuck.
Thank you so much Matias. Yes I was EXTREMLY stuck
Ill give you a report on how its going