2d platformer knockback without addforce

I’m trying to implement knockback in my 2d platformer which is based on raycasts.Using rigidbody2d.addforce works well but it makes me uncomfortable.As far as I know,combining physics with a raycast based controller is a bad Idea.Are there any other ways to do it.

Check link: Another alternative of rigidbody.AddForce? - Questions & Answers - Unity Discussions