Rotate insect leg IK rig from the top chain

I have a simple insect leg IK rig :

https://i.imgur.com/iCmfR8G.mp4

I’d like to ALSO be able to rotate the whole IK rig from the “thigh” of the leg, like so :

https://i.imgur.com/xAtS3L9.mp4

How could I modify my current set up? Thanks.

Edit: I tried parent the “foot” bone to the “thigh”. It works but I lose that “foot sticks to the floor”. Is that other way?

Welcome :tada:..

..because “we” do not know how you have this set up.. this would only be guess work..

I guess you need a root node where all others are linked to and so if rotating the root node.. you know what i’m talking about ?

Yes I understand. But if I have a root node and link both thigh and foot to it I’d lose that “foot sticks to the floor” thing, which I’d like to keep too.

https://imgur.com/Ah8CmS7

Is there a set up or constraint to help with this?

Solved. I added constraint to the foot as “child of” the thigh bone, then I disabled the z location so the foot would move up/down with the thigh.