Revision ed0988c0
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyKilominx.java | ||
---|---|---|
42 | 42 |
super(numL, meshState, quat, move, scale, stream); |
43 | 43 |
} |
44 | 44 |
|
45 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
46 |
// make the 'center' sticker artificially smaller, so that we paint over the area in the center of the face. |
|
47 |
|
|
48 |
@Override |
|
49 |
public void adjustStickerCoords() |
|
50 |
{ |
|
51 |
int[] numLayers = getNumLayers(); |
|
52 |
int index = numLayers[0]==3 ? 0:2; |
|
53 |
float CENTER_CORR = 0.87f; |
|
54 |
|
|
55 |
mStickerCoords[index][2] *= CENTER_CORR; |
|
56 |
mStickerCoords[index][3] *= CENTER_CORR; |
|
57 |
} |
|
58 |
|
|
45 | 59 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
46 | 60 |
|
47 | 61 |
private int numCubitsPerCorner(int numLayers) |
... | ... | |
510 | 524 |
return getNumCubitVariants(numLayers)-1; |
511 | 525 |
} |
512 | 526 |
|
513 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
514 |
// make the 'center' sticker artificially larger, so that we paint over the area in the center of the face. |
|
515 |
|
|
516 |
public void adjustStickerCoords() |
|
517 |
{ |
|
518 |
int[] numLayers = getNumLayers(); |
|
519 |
int index = numLayers[0]==3 ? 0:2; |
|
520 |
float CENTER_CORR = 0.87f; |
|
521 |
|
|
522 |
mStickerCoords[index][2] *= CENTER_CORR; |
|
523 |
mStickerCoords[index][3] *= CENTER_CORR; |
|
524 |
} |
|
525 |
|
|
526 | 527 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
527 | 528 |
|
528 | 529 |
public float getStickerRadius() |
Also available in: Unified diff
unify every isSolved() routine except one - the Dino4 is still special.