Project

General

Profile

« Previous | Next » 

Revision 2aa3d50c

Added by Leszek Koltunski over 5 years ago

1. Change the API of Dynamic: split makeNowRunFor into two separate 'setDuration' and 'resetToBeginning'
2. Major changes to the 'Dynamic' app so that we can check more about the Dynamics.

View differences:

src/main/java/org/distorted/magic/RubikCube.java
307 307
              {
308 308
              if( belongsToRotation(x,y,z,mRotAxis,mRotRow) )
309 309
                {
310
                mRotationAngle[x][y][z].makeRunNowFor(POST_ROTATION_MILLISEC);
310
                mRotationAngle[x][y][z].setDuration(POST_ROTATION_MILLISEC);
311
                mRotationAngle[x][y][z].resetToBeginning();
311 312
                mRotationAngle[x][y][z].add(mRotationAngleMiddle);
312 313
                mRotationAngle[x][y][z].add(mRotationAngleFinal);
313 314

  
......
352 353
              {
353 354
              if( belongsToRotation(x,y,z,mRotAxis,mRotRow) )
354 355
                {
355
                mRotationAngle[x][y][z].makeRunNowFor(0);
356 356
                mRotationAngle[x][y][z].removeAll();
357 357
                mQuatScramble[x][y][z].set(RubikSurfaceView.quatMultiply(quat,mQuatScramble[x][y][z]));
358 358
                modifyCurrentPosition(x,y,z,quat);

Also available in: Unified diff