Making joints break when a force is applied

Hi,

I'm trying to make my joints get destroyed when the pressure on the joint reaches a certain force.
I know i can use the GetReactionForce() but it returns a b2vec2 and I dont know how to compare this to the max force I want to set on the joint.

Please help 🙂 I give u cookies
A vector is both a direction and a magnitude, so the force returned would describe both the amount of force and the direction it is being applied. Use b2vec2.length to figure out your force magnitude and delete the joint if it exceeds your tolerance
Thank you, worked perfectly!

Original thread: https://box2d.org/forum/viewtopic.php?t=3423