How to make a basker swinging on a moving point?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By capt_sms

I’m making a game where you catch eggs into a basket. I have a point changing position and a basket attached to it. How would I make the basket to swing around depending on the position change of the point, like in real life it would on a hook?

:bust_in_silhouette: Reply From: DaddyMonster

You need PinJoint2D. Here’s a video tutorial:

And kidscancode covered it too: