Revision 4da7d87a
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
322 | 322 |
|
323 | 323 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
324 | 324 |
|
325 |
public RubikObject create(int size, Static4D quatCur, Static4D quatAcc, int[][] moves, Resources res)
|
|
325 |
public RubikObject create(int size, Static4D quat, int[][] moves, Resources res) |
|
326 | 326 |
{ |
327 | 327 |
DistortedTexture texture = new DistortedTexture(); |
328 | 328 |
DistortedEffects effects = new DistortedEffects(); |
... | ... | |
330 | 330 |
|
331 | 331 |
switch(ordinal()) |
332 | 332 |
{ |
333 |
case 0: return new RubikCube (size, quatCur, quatAcc, texture, mesh, effects, moves, res);
|
|
334 |
case 1: return new RubikPyraminx(size, quatCur, quatAcc, texture, mesh, effects, moves, res);
|
|
333 |
case 0: return new RubikCube (size, quat, texture, mesh, effects, moves, res); |
|
334 |
case 1: return new RubikPyraminx(size, quat, texture, mesh, effects, moves, res); |
|
335 | 335 |
} |
336 | 336 |
|
337 | 337 |
return null; |
Also available in: Unified diff
Simplify dragging. Now there's only 1 Quat, rather than the old way with two (Accumulated, Current).