Project

General

Profile

« Previous | Next » 

Revision 03aa05d5

Added by Leszek Koltunski about 4 years ago

Rex Cube Mesh

View differences:

src/main/java/org/distorted/objects/ObjectList.java
123 123

  
124 124
   REX (
125 125
         new int[][] {
126
                       {3 , 16, R.raw.ivy, R.drawable.ui_small_rex, R.drawable.ui_medium_rex, R.drawable.ui_big_rex, R.drawable.ui_huge_rex} ,
126
                       {3 , 16, R.raw.rex, R.drawable.ui_small_rex, R.drawable.ui_medium_rex, R.drawable.ui_big_rex, R.drawable.ui_huge_rex} ,
127 127
                     },
128 128
         TwistyRex.class,
129 129
         new MovementRex(),
src/main/java/org/distorted/objects/TwistyObject.java
78 78
  private static final float MAX_SIZE_CHANGE = 1.35f;
79 79
  private static final float MIN_SIZE_CHANGE = 0.75f;
80 80

  
81
  private static boolean mCreateFromDMesh = false;
81
  private static final boolean mCreateFromDMesh = true;
82 82

  
83 83
  private static final Static3D CENTER = new Static3D(0,0,0);
84 84
  private static final int POST_ROTATION_MILLISEC = 500;
......
98 98
  private static float mObjectScreenRatio = 1.0f;
99 99

  
100 100
  private final int mNodeSize;
101
  private final Static3D[] mOrigPos;
102
  private final Static3D mNodeScale;
103
  private final Static4D mQuat;
104
  private final int mNumLayers, mRealSize;
105
  private final ObjectList mList;
106
  private final DistortedEffects mEffects;
107
  private final VertexEffectRotate mRotateEffect;
108
  private final Dynamic1D mRotationAngle;
109
  private final Static3D mRotationAxis;
110
  private final Static3D mObjectScale;
111
  private final int[] mQuatDebug;
112
  private int mNumTexRows, mNumTexCols;
101 113
  private int mRotRowBitmap;
102 114
  private int mRotAxis;
103
  private Static3D[] mOrigPos;
104
  private Static3D mNodeScale;
105
  private Static4D mQuat;
106
  private int mNumLayers, mRealSize;
107
  private ObjectList mList;
108 115
  private MeshBase mMesh;
109
  private DistortedEffects mEffects;
110
  private VertexEffectRotate mRotateEffect;
111
  private Dynamic1D mRotationAngle;
112
  private Static3D mRotationAxis;
113
  private Static3D mObjectScale;
114
  private int[] mQuatDebug;
115
  private int mNumTexRows, mNumTexCols;
116 116

  
117 117
  float[] mRowChances;
118 118
  Static1D mRotationAngleStatic, mRotationAngleMiddle, mRotationAngleFinal;
src/main/java/org/distorted/objects/TwistyRex.java
352 352
    {
353 353
    int COLORS = FACE_COLORS.length;
354 354
    FactorySticker factory = FactorySticker.getInstance();
355
    float S1 = 0.06f;
355
    float S1 = 0.05f;
356 356
    float S2 = 0.04f;
357 357
    float R1 = 0.12f;
358 358
    float R2 = 0.06f;
src/main/java/org/distorted/tutorial/TutorialList.java
172 172
                          {"fr","mn7YTnYu3Uc","Comment résoudre le Ivy Cube","ValentinoCube"},
173 173
                          {"pl","8s_0VxNvFA8","Jak ułożyć ivy cube","DubiCube"},
174 174
                         }
175
        ),
176

  
177
  REX3 ( ObjectList.REX, 3,
178
          new String[][] {
179
                          {"gb","noAQfWqlMbk","Rex Cube Tutorial","CrazyBadCuber"},
180
                          {"es","Q90x9rjLJzw","Resolver CUBO REX","Cuby"},
181
                          {"ru","Dr9CLM6A3fU","Как собрать Рекс Куб","Алексей Ярыгин"},
182
                          {"fr","SvK1kf6c43c","Résolution du Rex Cube","Asthalis"},
183
                          {"pl","ffbFRnHglWY","Rex cube TUTORIAL PL","MrUk"},
184
                         }
175 185
        );
176 186

  
177 187
  public static final int NUM_OBJECTS = values().length;
178
  private ObjectList mObject;
179
  private int mSize;
180
  private String[][] mTutorials;
181
  private int mNumTutorials;
188
  private final ObjectList mObject;
189
  private final int mSize;
190
  private final String[][] mTutorials;
191
  private final int mNumTutorials;
182 192

  
183 193
  private static final TutorialList[] objects;
184 194

  

Also available in: Unified diff