Revision b9d4aa3b
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/objects/TwistyMegaminx.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import org.distorted.helpers.FactoryCubit; |
27 | 27 |
import org.distorted.helpers.FactorySticker; |
28 |
import org.distorted.helpers.QuatHelper; |
|
28 | 29 |
import org.distorted.library.effect.MatrixEffectQuaternion; |
29 | 30 |
import org.distorted.library.main.DistortedEffects; |
30 | 31 |
import org.distorted.library.main.DistortedTexture; |
... | ... | |
33 | 34 |
import org.distorted.library.type.Static3D; |
34 | 35 |
import org.distorted.library.type.Static4D; |
35 | 36 |
import org.distorted.main.R; |
36 |
import org.distorted.main.RubikSurfaceView; |
|
37 | 37 |
|
38 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 | 39 |
|
... | ... | |
147 | 147 |
{ |
148 | 148 |
Static4D quat = QUATS[QUAT_CORNER_INDICES[corner]]; |
149 | 149 |
|
150 |
mCurrCornerV[0] = RubikSurfaceView.rotateVectorByQuat(mBasicCornerV[0],quat);
|
|
151 |
mCurrCornerV[1] = RubikSurfaceView.rotateVectorByQuat(mBasicCornerV[1],quat);
|
|
152 |
mCurrCornerV[2] = RubikSurfaceView.rotateVectorByQuat(mBasicCornerV[2],quat);
|
|
150 |
mCurrCornerV[0] = QuatHelper.rotateVectorByQuat(mBasicCornerV[0],quat);
|
|
151 |
mCurrCornerV[1] = QuatHelper.rotateVectorByQuat(mBasicCornerV[1],quat);
|
|
152 |
mCurrCornerV[2] = QuatHelper.rotateVectorByQuat(mBasicCornerV[2],quat);
|
|
153 | 153 |
} |
154 | 154 |
|
155 | 155 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Lots of changes :)