Project

General

Profile

« Previous | Next » 

Revision f0fa83ae

Added by Leszek Koltunski about 4 years ago

Some fixes for the Pyraminx.

View differences:

src/main/java/org/distorted/effect/scramble/ScrambleEffect.java
124 124
    }
125 125

  
126 126
///////////////////////////////////////////////////////////////////////////////////////////////////
127
// only works if basicAngle<=4, i.e. wont work for something whose basic rotations are by less
127
// only works if basicAngle<=4, i.e. wont work for something whose basic rotations are by no less
128 128
// than 90 degrees.
129 129

  
130 130
  private void addNewScramble()
......
154 154
        android.util.Log.e("effect", "ERROR: "+mNumDoubleScramblesLeft);
155 155
        }
156 156

  
157
      mCurrentBaseEffectID = mObject.addNewRotation(mLastVector, row, angle*90, durationMillis, this );
157
      mCurrentBaseEffectID = mObject.addNewRotation(mLastVector, row, angle*(360/mBasicAngle), durationMillis, this );
158 158
      }
159 159
    else
160 160
      {

Also available in: Unified diff