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