public static CustomJointDrive ScaledCopy(CustomJointDrive normalizedDrive, float scale) { CustomJointDrive drive = new CustomJointDrive(); drive.spring = normalizedDrive.spring; // * scale; drive.damper = normalizedDrive.damper; // * scale; drive.maxForce = normalizedDrive.maxForce * scale; return(drive); }
public CustomJointDrive(CustomJointDrive drive) { this.spring = drive.spring; this.damper = drive.damper; this.maxForce = drive.maxForce; }