Hi Guys,
Been playing with Construct for a few days, it's awesome! I want to give hinges a maximum load strength, but am not quite sure how I can work it out.
I can break the hinge, that's not a problem (I've yet to find a 'break hinge' action, so I just spawn a temporary object and carry the velocities across, then destroy the original and in a separate event spawn another instance of the first object based on the temporary object, which seems to work nicely. Then kill the temp).
My problem is the actual working out of a threshold. I originally tried comparing velocity of object A with the velocity of object B, but that broke too early when swinging around. In other words, it didn't check that that velocity was in fact being pulled against the hinge itself.
Next attempt was to base the whole thing on centrifugal force (thanks Google), and that didn't work either, likely because of my formula. You move above a certain speed, and your hinges start to fall apart.
So I need some way to tell how much stress the hinge is under, and then trigger my cool hinge-snappin' function. Mercilessly.