Project

General

Profile

« Previous | Next » 

Revision e46e17fb

Added by Leszek Koltunski about 4 years ago

Adjust rotation speed depending on the row (important in case of Pyraminx - there the top little tetrahedron must rotate much faster than the bottom big layer )

View differences:

src/main/java/org/distorted/object/RubikCube.java
218 218
    {
219 219
    return (int)(getSize()*offset);
220 220
    }
221

  
222
///////////////////////////////////////////////////////////////////////////////////////////////////
223

  
224
  public float returnRotationFactor(float offset)
225
    {
226
    return 1.0f;
227
    }
221 228
}

Also available in: Unified diff