Revision dae661e9
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/rubik/RubikCube.java | ||
---|---|---|
139 | 139 |
mRotate[x][y][z] = new MatrixEffectRotate( mRotationAngle[x][y][z], mRotationAxis[x][y][z], center); |
140 | 140 |
|
141 | 141 |
mEffects[x][y][z] = new DistortedEffects(); |
142 |
mEffects[x][y][z].apply(sinkEffect); |
|
143 |
mEffects[x][y][z].apply(moveEffect); |
|
144 |
mEffects[x][y][z].apply(scaleEffect); |
|
145 |
mEffects[x][y][z].apply(quatEffect); |
|
146 |
mEffects[x][y][z].apply( mRotate[x][y][z] ); |
|
147 | 142 |
mEffects[x][y][z].apply( new MatrixEffectMove(cubeVectors[x][y][z]) ); |
143 |
mEffects[x][y][z].apply( mRotate[x][y][z] ); |
|
144 |
mEffects[x][y][z].apply(quatEffect); |
|
145 |
mEffects[x][y][z].apply(scaleEffect); |
|
146 |
mEffects[x][y][z].apply(moveEffect); |
|
147 |
mEffects[x][y][z].apply(sinkEffect); |
|
148 | 148 |
} |
149 | 149 |
} |
150 | 150 |
} |
Also available in: Unified diff
Invert the order of Matrix Effects. Now, just as in the other queues, the first matrix effect is actually the first to act on the object - not the other way around!