Project

General

Profile

« Previous | Next » 

Revision efef689c

Added by Leszek Koltunski about 4 years ago

Progress towards generalizing belongsToRotation()

View differences:

src/main/java/org/distorted/magic/RubikSurfaceView.java
265 265
                                           Static4D touchPoint2 = new Static4D(x, y, 0, 0);
266 266
                                           Static4D rotatedTouchPoint2= rotateVectorByInvertedQuat(touchPoint2, mQuatAccumulated);
267 267

  
268
                                           Static4D rot = mMovement.newRotation(rotatedTouchPoint2);
268
                                           Static2D rot = mMovement.newRotation(rotatedTouchPoint2);
269 269
                                           RubikObject object = mRenderer.getObject();
270 270

  
271
                                           object.beginNewRotation( new Static3D(rot.get0(),rot.get1(),rot.get2()), (int)(object.getSize()*rot.get3()) );
271
                                           object.beginNewRotation( (int)rot.get0(), (int)(object.getSize()*rot.get1()) );
272 272

  
273 273
                                           if( RubikState.getCurrentState()==RubikState.SOLV )
274 274
                                             {

Also available in: Unified diff