Revision beee90ab
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyHelicopter.java | ||
---|---|---|
49 | 49 |
}; |
50 | 50 |
|
51 | 51 |
private ScrambleState[] mStates; |
52 |
private int[] mBasicAngle; |
|
52 |
private int[][] mBasicAngle;
|
|
53 | 53 |
private float[][] mCuts; |
54 | 54 |
private float[][] mCenters; |
55 | 55 |
private int[] mQuatIndices; |
... | ... | |
311 | 311 |
|
312 | 312 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
313 | 313 |
|
314 |
public int[] getBasicAngles() |
|
314 |
public int[][] getBasicAngles()
|
|
315 | 315 |
{ |
316 |
if( mBasicAngle ==null ) mBasicAngle = new int[] { 2,2,2,2,2,2 }; |
|
316 |
if( mBasicAngle ==null ) |
|
317 |
{ |
|
318 |
int num = getNumLayers()[0]; |
|
319 |
int[] tmp = new int[num]; |
|
320 |
for(int i=0; i<num; i++) tmp[i] = 2; |
|
321 |
mBasicAngle = new int[][] { tmp,tmp,tmp,tmp,tmp,tmp }; |
|
322 |
} |
|
317 | 323 |
return mBasicAngle; |
318 | 324 |
} |
319 | 325 |
|
Also available in: Unified diff
Preparation for Mixup Cube: take advantage of the recent bump in MAJOR_VERSION number and change the format of basicAngles to int[][] 'per-axis-per-layer' [ Mixup Cube has different basicAngle in its middle layers (8) - and different in its edge layers (4) ]