Project

General

Profile

« Previous | Next » 

Revision 5944e760

Added by Leszek Koltunski over 4 years ago

Fix the bug reported by Antonio Campos Galán: sometimes the app would not detect that the Cube is solved.

View differences:

src/main/java/org/distorted/objects/Cubit.java
215 215
      {
216 216
      case 0 : return true ;  // 'inside' cubit that does not lie on any face
217 217
      case 1 :                // cubit that lies inside one of the faces
218
               float cubitCenterX = mCurrentPosition.get0();
219
               float cubitCenterY = mCurrentPosition.get1();
220
               float cubitCenterZ = mCurrentPosition.get2();
218
               float cubitCenterX = mOrigPosition.get0();
219
               float cubitCenterY = mOrigPosition.get1();
220
               float cubitCenterZ = mOrigPosition.get2();
221 221

  
222 222
               Static4D quat1 = mParent.QUATS[quatIndex];
223 223
               Static4D quat2 = mParent.QUATS[mQuatIndex];
......
255 255
                   }
256 256
                 }
257 257
               return false;
258

  
258 259
      default: return false;  // edge or corner
259 260
      }
260 261
    }

Also available in: Unified diff