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.
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.