Hi Hilbert
A chap called Steve Cruickshank (BARV) showed me a technique he used in 1/35 for making working hydraulic rams and pivot points for them.
I used it for making the hitches for the Sanky and King trailers



He used either solid spare plastic sprue or hollow tube and simply heated the end of it over a match or lighter flame to soften the plastic.
When soft, take two fingers and spit on them and pinch the softened end to mold it to the rough shape you nead, It does take practice and feels hot at first which seems a bit off-putting at first.
With the end flattened or shaped roughly as required, the plastic cools and holds that shape.
My trailer hitches were solid sprue rounded with my fingers, drilled, sanded to be rounded and the other end sanded to the correct diameter to fit into a receiving tube.
Looks as if you would need to do subtle carving to shape before drilling the pivot hole.
This end piece could be formed to rough square shape, then drilled, filed, carved and sanded to form the more complicated shape you need.
Solid sprue version can act as the ram with its pivot point and the hollow version can be the tube with its pivot point.
Remember to form the end before you cut the length as this allows you to correct the pivot point shape if first attempts don't work. If you cut length first then form end you run risk that ram and tube are too short to be used.
Hope this helps. Look up BARV's work as you might see how he did his connections. He was a master scratchbuilder.
Nige