One way collisions in 2D, is it possible

I am trying to create a 2D platformer and I need a way to have one way collisions.
Something like the platforms in Bubble Bobble for example.

I first thought that I can use the Segment shape but as it looks like Segments are working in clockwise and anticlockwise the same way.

So is it possible and if so how?