Project

General

Profile

« Previous | Next » 

Revision ed6b7481

Added by Leszek Koltunski 7 months ago

First tries at Bump Jing and Bump Pyraminx ( both crash on startup now)

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyMirrorSkewb.java
167 167
    {
168 168
    if( mDist3D==null )
169 169
      {
170
      float DX = MIRROR_VEC[0]/2;
171
      float DY = MIRROR_VEC[1]/2;
172
      float DZ = MIRROR_VEC[2]/2;
173
      mDist3D = new float[] {0.5f+DX, 0.5f-DX, 0.5f+DY, 0.5f-DY, 0.5f+DZ, 0.5f-DZ};
170
      float[] d = getDist();
171
      mDist3D = new float[] { d[0]/2, d[1]/2, d[2]/2, d[3]/2, d[4]/2, d[5]/2 };
174 172
      }
175 173

  
176 174
    return mDist3D;

Also available in: Unified diff