Revision 27a70eae
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/effect/solve/SolveEffectSpin.java | ||
---|---|---|
74 | 74 |
mCubeEffectPosition[phase] = new int[] {3}; |
75 | 75 |
mCubeEffects[phase] = new Effect[mCubeEffectPosition[0].length]; |
76 | 76 |
|
77 |
Static4D quaternion = mCube.getRotationQuat(); // always rotate around
|
|
77 |
Static4D quaternion = mObject.getRotationQuat(); // always rotate around
|
|
78 | 78 |
Static4D tmpAxis = new Static4D(0,1,0,0); // vert axis no matter |
79 | 79 |
Static4D rotated = rotateVectorByInvertedQuat(tmpAxis,quaternion); // how cube is rotated |
80 | 80 |
|
Also available in: Unified diff
Make RubikCube and RubikCubeMovement generic and not visible outside of their package.