public static void LockAllAngularMotion(this ConfigurableJoint joint) { joint.LockAngularXMotion(); joint.LockAngularYMotion(); joint.LockAngularZMotion(); }