Add Force to In Direction Object is Moving

I’m making a game of Pong and I want the ball to accelerate, but the ball is moving back and forth in opposite directions, I want to know how to get the ball to have force added in the direction it’s already moving in, so when the ball is moving left, it applies -10 force a second, and when it’s moving right it will apply +10 force a second, anyone know how to do this?

Well, since rigidbodies already know what direction they’re moving in, try something like this:

rigidbody.AddForce(rigidbody.velocity.normalized * Time.deltaTime * forceAmount);

That should make your rigidbody accellerate further in its current direction.