Hi Lars,
there’s not really a direct way to draw a spline through 3 points that you can animate.
a broken line would be no problem: that can be made with two “beam” effects that you combine.
You could try with bending, but then the bend will always be in the middle…
I’m thinking in the lines of this:
make the leg in photoshop as one layer, rigid:

Open, then precomp it after effects so it has lots and lots of transparancy around it:
make the precomp three times as wide as the leg is high.
and 1.5 times as high as the leg is high:

Set the Anchorpoint of the precomped leg to the pivotpoint of the hip:

add a “Distort->CC Bend It” filter
give the Start-point “parameter” this expression: "anchorPoint"
Now move the End-point to the bottom of the foot, it’s best to make sure its X-value is the same as the Start-X value, so the two points are directly underneath eachother:

Give the layer’s rotation this expression: value - effect("CC Bend It")("Bend")*(0.9)
This will subtract a value from the current rotation, if you bend 100% it will rotate -90