Moving platform going through objects

Interesting, but what if my platform is complicated shape.
And collided like this(green - contact collision):


Would this method work?