Beispiel #1
0
        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);
        }
Beispiel #2
0
 public CustomJointDrive(CustomJointDrive drive)
 {
     this.spring   = drive.spring;
     this.damper   = drive.damper;
     this.maxForce = drive.maxForce;
 }