How to joint the 2 jointed bodies

Hi all,
I am learning the Box2D. I am having one problem The problem definition is as follows:
I am having a fixed point, surrounded by a circle of some fixed radius. I am dragging a body. There are 2 points on the body. As soon as the body enters into the circle, the nearest point should be merged with the point inside circle.
I am able to solve this problem by translating the body by that distance. But it got solved only for the single body. If there are multiple bodies connected to each other, then the translation logic is not working.

Can anyone guide me for solving this problem?
Thanks

Original thread: https://box2d.org/forum/viewtopic.php?t=10138