Illustration: http://s22.postimg.org/7agd30vap/Untitled.png
So the little box is my character. The red arrow shows the current velocity(Some force to right + gravity). Below it are 2 blocks which has the same height. The problem is that my algorithm would solve the collision normals with error.(You can see them in green). These would mean that my character would not slide, but will stop in one place. In this place both collision normals should have been UP(0,1).
Implementation details:
I'm following this tutorial: http://gamedevelopment.tutsplus.com/tutorials/how-to-create-a-custom-2d-physics-engine-the-basics-and-impulse-resolution--gamedev-6331
Is there something I miss and how can I fix this problem?