Revision ac97ecc0
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyRex.java | ||
---|---|---|
260 | 260 |
{ |
261 | 261 |
float[][] vertices= { {-0.10f,0.70f,0},{-0.70f,0.10f,0},{+0.65f,-0.71f,0},{+0.71f,-0.65f,0},{0,0.05f,-0.2f} }; |
262 | 262 |
int[][] indices = { {0,1,2,3},{0,3,4},{3,2,4},{2,1,4},{1,0,4} }; |
263 |
return new ObjectShape(vertices, indices, getNumCubitFaces(), 1);
|
|
263 |
return new ObjectShape(vertices, indices, 1); |
|
264 | 264 |
} |
265 | 265 |
else if( variant==1 ) |
266 | 266 |
{ |
267 | 267 |
float G = 3*REX_D; |
268 | 268 |
float[][] vertices= { { -G, 0, 0 },{ 0,-G, 0 },{ +G, 0, 0 },{ 0,+G,0 },{ 0, 0,-G} }; |
269 | 269 |
int[][] indices = { {0,1,2,3},{0,3,4},{3,2,4},{2,1,4},{1,0,4} }; |
270 |
return new ObjectShape(vertices, indices, getNumCubitFaces(), 1);
|
|
270 |
return new ObjectShape(vertices, indices, 1); |
|
271 | 271 |
} |
272 | 272 |
else |
273 | 273 |
{ |
... | ... | |
275 | 275 |
float F = 1.5f; |
276 | 276 |
float[][] vertices= { { -F, 0, 0 },{ 0,-E, 0 },{ +F, 0, 0 },{ 0, 0,-E } }; |
277 | 277 |
int[][] indices = { {0,1,2}, {0,2,3}, {0,3,1}, {1,3,2} }; |
278 |
return new ObjectShape(vertices, indices, getNumCubitFaces(), 2);
|
|
278 |
return new ObjectShape(vertices, indices, 2); |
|
279 | 279 |
} |
280 | 280 |
} |
281 | 281 |
|
Also available in: Unified diff
Progress towards removing the 'getNumCubitFaces()' object API.