Slingshot from Angry Birds

What would be the best way to make the Angry Birds' slingshot with Box2D? Basically I want to create a 1:1 copy of how the slingshot works.
The slingshot should be able to stretch only to a certain lenght. What's the best way to limit it?
How the dragging should be built? Should the game character (the bird) just teleport every frame at the cursor's position once the dragging starts or is there a better way to do it?
How the actual force should be applied into the body once fired? Should there be a spring attached from the bird to the origin of the slingshot that breaks right after the mouse button is released? Another way is to use ApplyForce and give it a direction vector from the bird to the origin.

So, there are many ways to do it. I'm a noob and I'm looking for help.
Probably the slingshot itself is just a graphic; the bird just teleports to the touched coordinates, restricted to within a certain radius of its starting point. When you release, it would probably just apply a large impulse to the bird (how large depending how far it is from its starting point), sending it flying along the angle it's currently held at and hopefully into a pig.
Rena wrote:
Probably the slingshot itself is just a graphic; the bird just teleports to the touched coordinates, restricted to within a certain radius of its starting point. When you release, it would probably just apply a large impulse to the bird (how large depending how far it is from its starting point), sending it flying along the angle it's currently held at and hopefully into a pig.


The first sentence had me thinking that when the bird is attached to the slingshot, it doesn't have to be a box2D body, but rather just a graphic element without collisions, mass or any physical properties. Once you release the slingshot, the real bird (box2D body with collision etc.) spawns and flies in the right direction. Now it actually sounds quite easy. Thank you.

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