Project

General

Profile

« Previous | Next » 

Revision 7e9a35eb

Added by Leszek Koltunski 11 months ago

change the way the coordinates of stickers are kept from float[2*N] to float[N][2]

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyMasterball.java
83 83

  
84 84
    final float Y = 0.02f;
85 85

  
86
    mStickerCoords = new float[][]
86
    mStickerCoords = new float[][][]
87 87
          {
88
            { X1+Y*(X4-X1), Y1+Y*(Y4-Y1), X2+Y*(X3-X2), Y2+Y*(Y3-Y2), X3, Y3, X4, Y4 },
89
            { -0.17166577f, -0.28301144f, 0.24996112f, -0.21698855f, -0.07829534f, 0.5f, }
88
            { {X1+Y*(X4-X1), Y1+Y*(Y4-Y1)}, {X2+Y*(X3-X2), Y2+Y*(Y3-Y2)}, {X3, Y3}, {X4, Y4} },
89
            { {-0.17166577f, -0.28301144f}, {0.24996112f, -0.21698855f}, {-0.07829534f, 0.5f} }
90 90
          };
91 91
    }
92 92

  

Also available in: Unified diff