Revision 347f6cc1
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/objectlib/objects/TwistyUltimate.java | ||
---|---|---|
213 | 213 |
|
214 | 214 |
public ObjectFaceShape getObjectFaceShape(int variant) |
215 | 215 |
{ |
216 |
int angle = 25; |
|
217 |
float R = 0.7f; |
|
218 |
float S = 0.5f; |
|
219 |
|
|
216 | 220 |
if( variant==0 ) |
217 | 221 |
{ |
218 | 222 |
float h1 = isInIconMode() ? 0.001f : 0.05f; |
219 | 223 |
float h2 = isInIconMode() ? 0.001f : 0.01f; |
220 |
float[][] bands = { {h1,17,0.5f,0.2f,5,1,0}, {h2, 1,0.5f,0.2f,5,1,0} };
|
|
224 |
float[][] bands = { {h1,angle,R,S,5,1,0}, {h2,angle,R,S,5,1,0} };
|
|
221 | 225 |
int[] indices = { 0,0,0,1,1,1 }; |
222 | 226 |
return new ObjectFaceShape(bands,indices,null); |
223 | 227 |
} |
... | ... | |
225 | 229 |
{ |
226 | 230 |
float h1 = isInIconMode() ? 0.001f : 0.05f; |
227 | 231 |
float h2 = isInIconMode() ? 0.001f : 0.01f; |
228 |
float[][] bands = { {h1,17,0.5f,0.2f,5,1,0}, {h2, 1,0.5f,0.2f,5,1,0} };
|
|
232 |
float[][] bands = { {h1,angle,R,S,5,1,0}, {h2,angle,R,S,5,1,0} };
|
|
229 | 233 |
int[] indices = { 0,0,0,1,1,1 }; |
230 | 234 |
return new ObjectFaceShape(bands,indices,null); |
231 | 235 |
} |
... | ... | |
234 | 238 |
float h1 = isInIconMode() ? 0.001f : 0.03f; |
235 | 239 |
float h2 = isInIconMode() ? 0.001f : 0.05f; |
236 | 240 |
float h3 = isInIconMode() ? 0.001f : 0.01f; |
237 |
float[][] bands = { {h1,17,0.5f,0.2f,5,1,0}, {h2,17,0.5f,0.2f,5,1,0}, {h3, 1,0.5f,0.2f,5,1,0} };
|
|
241 |
float[][] bands = { {h1,angle,R,S,5,1,0}, {h2,angle,R,S,5,1,0}, {h3,angle,R,S,5,1,0} };
|
|
238 | 242 |
int[] indices = { 0,0,1,1,2,2,2,2 }; |
239 | 243 |
return new ObjectFaceShape(bands,indices,null); |
240 | 244 |
} |
Also available in: Unified diff
correct face shapes (post-new MeshPolygon normal computation)