How to make an object fly out of a slingshot?

Posted by Deza on Game Development See other posts from Game Development or by Deza
Published on 2012-03-20T17:28:15Z Indexed on 2012/03/20 17:39 UTC
Read the original article Hit count: 154

Filed under:
|

At the moment I'm improvising a slingshot, the user can click and drag the projectile and let go. The force on the object is calculated by getting the distance between the vector of the slingshots two forks and the vector between where the user pulled it. However this will always result in a positive number and will not take into account the angle of the object relative to that of the slingshot. How can I make it fly out of the slingshot correctly?

© Game Development or respective owner

Related posts about physics

Related posts about box2d