by skydereign » Mon Dec 26, 2011 6:26 am
First two things that came to mind. It isn't especially easy to do, assuming you want to make it realistic. You can do the slingshot mechanics by having a resting point, and using its initial position and a mouse button down event to determine the position (xmouse, ymouse) but the actual string actors will have to be drawn with canvas. So for the slingshot clicking the actor will trigger a variable so that it can use the xmouse ymouse to position the actor, and when it is in position you update the strings. You can limit the length you can pull the platform back with by using some simple trig (cos/sin of a circle). This method won't rotate the wood though, so you'll have to do animation rotation as well as some physics calculations to make a convincing rotation effect though.
If you want to use gE 1.5's physics, then you would use three distance joints, break the wood into two parts, and have them connected by one of the distance joints, and then the strings connecting to the different pieces. I don't believe distance joints are elastic though, so it would be limited to just a swing unless you use some trig on the dots to which it connects.