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; }
public JointSettings() { angularDrive = new CustomJointDrive(CustomJointDrive.zero); motionDrive = new CustomJointDrive(CustomJointDrive.zero); }
public JointSettings(JointSettings values) { angularDrive = new CustomJointDrive(values.angularDrive); motionDrive = new CustomJointDrive(values.motionDrive); }