示例#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);
        }
示例#2
0
 public CustomJointDrive(CustomJointDrive drive)
 {
     this.spring   = drive.spring;
     this.damper   = drive.damper;
     this.maxForce = drive.maxForce;
 }
示例#3
0
 public JointSettings()
 {
     angularDrive = new CustomJointDrive(CustomJointDrive.zero);
     motionDrive  = new CustomJointDrive(CustomJointDrive.zero);
 }
示例#4
0
 public JointSettings(JointSettings values)
 {
     angularDrive = new CustomJointDrive(values.angularDrive);
     motionDrive  = new CustomJointDrive(values.motionDrive);
 }