Project

General

Profile

« Previous | Next » 

Revision fb1e9a31

Added by Leszek Koltunski 12 months ago

move the returnRotationFactor() method from touchControl to TwistyObject (where it can be overridden)

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControlDodecahedron.java
52 52
    super(object,D3D,FACE_AXIS);
53 53
    }
54 54

  
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56

  
57
  public float returnRotationFactor(int[] numLayers, int row)
58
    {
59
    return 1.0f;
60
    }
61

  
62 55
///////////////////////////////////////////////////////////////////////////////////////////////////
63 56
// return angle (in radians) that the line connecting the center C of the pentagonal face and the
64 57
// first vertex of the pentagon makes with a vertical line coming upwards from the center C.

Also available in: Unified diff