Project

General

Profile

« Previous | Next » 

Revision b3c9061a

Added by Leszek Koltunski about 3 years ago

New Cubit Engine: add adjustable centers.

View differences:

src/main/java/org/distorted/objects/TwistyCube.java
180 180
      int[] bandIndexes   = new int[] { 0,0,0,0,0,0};
181 181
      float[][] corners   = new float[][] { {0.036f,0.12f} };
182 182
      int[] cornerIndexes = new int[] { 0,0,0,0,0,0,0,0 };
183
      float[][] centers   = new float[][] { {0.0f, 0.0f, 0.0f} };
184
      int[] centerIndexes = new int[] { 0,0,0,0,0,0,0,0 };
183 185

  
184 186
      FactoryCubit factory = FactoryCubit.getInstance();
185 187

  
......
187 189
      mMeshes[index] = factory.createRoundedSolid(VERTICES, VERT_INDEXES,
188 190
                                                  bands, bandIndexes,
189 191
                                                  corners, cornerIndexes,
192
                                                  centers, centerIndexes,
190 193
                                                  getNumCubitFaces() );
191 194
      }
192 195

  

Also available in: Unified diff