This project has moved and is read-only. For the latest updates, please go here.

Rubber Band Joint a la Angry Birds

Topics: Developer Forum
Jan 13, 2011 at 11:03 PM


I'm trying to make something similar to Angry Birds... To do this, I am attaching a projectile via a distance joint to a slingshot like object. However I'm having a hard to tuning it so that when i remove the joint between the mouse point and the projectile, the projectile should get launched. What happens instead is that the projectile just falls to the ground.

I am using 1 as the damping factor and 3 as the frequency.

Any ideas?


Jan 14, 2011 at 4:28 AM

I wouldn't use any joint at all for that purpose. In Angry Birds you can place your "projectiles" more or less within a halfcircle behind your slingshot. If the user lets go of the projectile, just calculate the vector from the projectile to your slingshot center and launch the projectile with an impulse in the same direction scaled by the length of the vector.