Project

General

Profile

« Previous | Next » 

Revision 37310d4f

Added by Leszek Koltunski about 1 year ago

Dino solveers: change the rot axis

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyDino.java
31 31
  static final Static3D[] ROT_AXIS = new Static3D[]
32 32
         {
33 33
           new Static3D( SQ3/3, SQ3/3, SQ3/3),
34
           new Static3D( SQ3/3, SQ3/3,-SQ3/3),
35
           new Static3D( SQ3/3,-SQ3/3, SQ3/3),
36
           new Static3D( SQ3/3,-SQ3/3,-SQ3/3)
34
           new Static3D(-SQ3/3,-SQ3/3, SQ3/3),
35
           new Static3D(-SQ3/3, SQ3/3,-SQ3/3),
36
           new Static3D( SQ3/3,-SQ3/3,-SQ3/3),
37 37
         };
38 38

  
39 39
  private int[][] mBasicAngle;
......
147 147

  
148 148
  public Static4D getCubitQuats(int cubit, int[] numLayers)
149 149
    {
150
    if( mQuatIndex==null ) mQuatIndex = new int[] { 0,2,10,8,1,4,6,7,11,5,9,3 };
150
    if( mQuatIndex==null ) mQuatIndex = new int[] { 0,2,10,8,1,3,5,7,11,6,9,4 };
151 151
    return mObjectQuats[mQuatIndex[cubit]];
152 152
    }
153 153

  

Also available in: Unified diff