ContactPoint2D help convert from 3D to 2D

I am making a breakout style game and trying to add english to the ball when it hits a certain point on the paddle. I found this in a tutorial and am trying to convert it to work with the 2D physics system.

void OnCollisionEnter(Collision col)
{
foreach(ContactPoint contact in col.contacts)
{
if(contact.thiscollider == collider)
{
float english = contact.point.x - transform.position.x;
Debug.Log (“Called”);
contact.otherCollider.rigidbody.AddForce(300f * english, 0, 0);
}
}
}

sorry about the formatting wasn’t sure how to add the code with indentation, never asked a question on here before.