Stop bodies from pushing each other?

I'd like to stop bodies from pushing each other away and act like a wall to other bodies.

I've done this before using a box2d port for as3, where i could simply set the bodytype of contactB to kinematic presolve and dynamic again postsolve, but this seems to completely crash the world here.