public static void SetLinearDrive(this ConfigurableJoint joint, float spring, float damper, float maxforce) { joint.SetXDrive(spring, damper, maxforce); joint.SetYDrive(spring, damper, maxforce); joint.SetZDrive(spring, damper, maxforce); }