Project

General

Profile

« Previous | Next » 

Revision 39e74052

Added by Leszek Koltunski about 4 years ago

Progress with object Movement.

View differences:

src/main/java/org/distorted/object/RubikObjectMovement.java
278 278

  
279 279
          if( isInsideFace(mPoint2D) )
280 280
            {
281
            android.util.Log.e("move", "face "+getFaceColor(mLastTouchedAxis)+" ("+mPoint2D[0]+","+mPoint2D[1]+")");
282

  
283 281
            fillPossibleRotations(mLastTouchedAxis, mPossible);
284 282
            return true;
285 283
            }
......
308 306
    int index = mLastTouchedAxis*mNumFacesPerAxis+mLastTouchedLR;
309 307
    float offset = computeOffset(mPoint2D, mCastAxis[index][mRotationVect]);
310 308

  
311
android.util.Log.d("move", "new rot: face "+getFaceColor(mLastTouchedAxis)+" vect: "+mRotationVect+" offset: "+offset);
312

  
313 309
    return new Static2D(mRotationVect,offset);
314 310
    }
315 311

  

Also available in: Unified diff