Revision 43a4ccff
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/main/ObjectControl.java | ||
---|---|---|
298 | 298 |
TwistyObject object = mPreRender.getObject(); |
299 | 299 |
int[] numLayers = object.getNumLayers(); |
300 | 300 |
|
301 |
Static4D touchPoint2 = new Static4D(x, y, 0, 0);
|
|
302 |
Static4D rotatedTouchPoint2= QuatHelper.rotateVectorByInvertedQuat(touchPoint2, mQuat);
|
|
303 |
Static2D res = mMovement.newRotation(rotatedTouchPoint2,object.getObjectRatio());
|
|
301 |
Static4D touchPoint = new Static4D(x, y, 0, 0); |
|
302 |
Static4D rotatedTouchPoint= QuatHelper.rotateVectorByInvertedQuat(touchPoint, mQuat);
|
|
303 |
Static2D res = mMovement.newRotation(rotatedTouchPoint,object.getObjectRatio()); |
|
304 | 304 |
|
305 | 305 |
mCurrentAxis = (int)res.get0(); |
306 | 306 |
mCurrentRow = (int)res.get1(); |
Also available in: Unified diff
simplify sticker/color map.