Project

General

Profile

« Previous | Next » 

Revision 14a4712f

Added by Leszek Koltunski about 4 years ago

Progress with object Movement. Assigning new Rotations works now, independently of object type.

View differences:

src/main/java/org/distorted/magic/RubikSurfaceView.java
40 40
    // Moving the finger from the middle of the vertical screen to the right edge will rotate a
41 41
    // given face by SWIPING_SENSITIVITY/2 degrees.
42 42
    private final static int SWIPING_SENSITIVITY  = 240;
43
    // Moving the finger by 1/12 the distance of min(scrWidth,scrHeight) will start a Rotation.
44
    private final static int ROTATION_SENSITIVITY =  12;
43
    // Moving the finger by 1/15 the distance of min(scrWidth,scrHeight) will start a Rotation.
44
    private final static int ROTATION_SENSITIVITY =  15;
45 45
    // Every 1/12 the distance of min(scrWidth,scrHeight) the direction of cube rotation will reset.
46 46
    private final static int DIRECTION_SENSITIVITY=  12;
47 47

  

Also available in: Unified diff