How can such a mechanic be done?

How can you make such a mechanic as in the picture? So that the beam can bend around the point

321532-3445.png