Project

General

Profile

« Previous | Next » 

Revision 644c217a

Added by Leszek Koltunski about 1 year ago

Progress with support for touch-control of pieces which we rotate along an axs which is normal to the currently touched face (think Coin Tetrahedron!)

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControlShapeConstant.java
408 408
      }
409 409
    }
410 410

  
411
///////////////////////////////////////////////////////////////////////////////////////////////////
412

  
413
  public float[] getTouchedPuzzleCenter()
414
    {
415
    Static3D faceAxis = mFaceAxis[mLastTouchedFace];
416
    float d = mDistanceCenterFace3D[mLastTouchedFace];
417
    return new float[] { d*faceAxis.get0(), d*faceAxis.get1(), d*faceAxis.get2(), 1 };
418
    }
419

  
411 420
///////////////////////////////////////////////////////////////////////////////////////////////////
412 421

  
413 422
  public int getTouchedCubitFace()

Also available in: Unified diff