Unity3D – Physics – OnMouseDown – Disable all Springs in Scene
// When clicking on the object, it will disable all springs on all // hinges in the scene function OnMouseDown () { var hinges : HingeJoint[] = FindObjectsOfType(HingeJoint) as HingeJoint[]; for (var hinge : HingeJoint in hinges) { hinge.useSpring = false; } }