Revision 1a7dd366
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyCoinHexahedron.java | ||
---|---|---|
196 | 196 |
{ |
197 | 197 |
if( mPosition==null ) |
198 | 198 |
{ |
199 |
final float A = 1.49f-C;
|
|
200 |
final float B = 1.50f;
|
|
201 |
final float Z = 1.50f;
|
|
199 |
final float A = 1.48f-C;
|
|
200 |
final float B = 1.52f;
|
|
201 |
final float Z = 1.49f;
|
|
202 | 202 |
final float E = 0.75f*D; |
203 | 203 |
|
204 | 204 |
mPosition = new float[][] |
... | ... | |
458 | 458 |
int[][] ret = new int[1+4*N][]; |
459 | 459 |
|
460 | 460 |
ret[0] = new int[4*N]; |
461 |
for(int i=0; i<4*N; i++) ret[0][i] = i; |
|
461 |
for(int i=0; i<4*N; i++) ret[0][i] = 4*N-1-i;
|
|
462 | 462 |
|
463 | 463 |
for(int i=0; i<N; i++) |
464 | 464 |
{ |
... | ... | |
553 | 553 |
} |
554 | 554 |
else if( variant==1 ) |
555 | 555 |
{ |
556 |
float h1 = isInIconMode() ? 0.0001f : 0.015f;
|
|
556 |
float h1 = isInIconMode() ? 0.0001f : 0.001f;
|
|
557 | 557 |
float h2 = 0.0001f; |
558 |
float[][] bands = { {h1,25,0.2f,0.4f,5,0,0}, {h2,25,0.05f,0.1f,2,0,0} };
|
|
558 |
float[][] bands = { {h1,5,0.2f,0.4f,5,0,0}, {h2,5,0.05f,0.1f,2,0,0} };
|
|
559 | 559 |
int num = 1+4*N; |
560 | 560 |
int[] indices = new int[num]; |
561 | 561 |
for(int i=1; i<num; i++) indices[i] = 1; |
... | ... | |
579 | 579 |
{ |
580 | 580 |
if( variant==0 ) |
581 | 581 |
{ |
582 |
float[][] corners = { {0.10f,0.20f} };
|
|
582 |
float[][] corners = { {0.05f,0.15f} };
|
|
583 | 583 |
int num = 8+3*N; |
584 | 584 |
int[] indices = new int[num]; |
585 | 585 |
for(int i=1; i<num; i++) indices[i] = -1; |
Also available in: Unified diff
correct the Coin Hexahedron.