Revision 086a24d0
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/effect/UnscrambleEffectSpin.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
public class UnscrambleEffectSpin extends UnscrambleEffect |
30 | 30 |
{ |
31 |
public void createEffects(int duration) |
|
31 |
public void createEffectsPhase0(int duration)
|
|
32 | 32 |
{ |
33 |
mCubeEffectPositionBefore = new int[] {6};
|
|
34 |
mCubeEffectsBefore = new Effect[mCubeEffectPositionBefore.length];
|
|
33 |
mCubeEffectPosition[0] = new int[] {6};
|
|
34 |
mCubeEffects[0] = new Effect[mCubeEffectPosition[0].length];
|
|
35 | 35 |
|
36 | 36 |
Dynamic3D d0 = new Dynamic3D(duration, 0.5f); |
37 | 37 |
d0.add(new Static3D(1.00f, 1.00f, 1.00f)); |
38 | 38 |
d0.add(new Static3D(0.01f, 0.01f, 0.01f)); |
39 |
mCubeEffectsBefore[0] = new MatrixEffectScale(d0); |
|
39 |
mCubeEffects[0][0] = new MatrixEffectScale(d0); |
|
40 |
} |
|
41 |
|
|
42 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
40 | 43 |
|
41 |
mCubeEffectPositionAfter = new int[] {6}; |
|
42 |
mCubeEffectsAfter = new Effect[mCubeEffectPositionAfter.length]; |
|
44 |
public void createEffectsPhase1(int duration) |
|
45 |
{ |
|
46 |
mCubeEffectPosition[1] = new int[] {6}; |
|
47 |
mCubeEffects[1] = new Effect[mCubeEffectPosition[1].length]; |
|
43 | 48 |
|
44 | 49 |
Dynamic3D d1 = new Dynamic3D(duration, 0.5f); |
45 | 50 |
d1.add(new Static3D(0.01f, 0.01f, 0.01f)); |
46 | 51 |
d1.add(new Static3D(1.00f, 1.00f, 1.00f)); |
47 |
mCubeEffectsAfter[0] = new MatrixEffectScale(d1);
|
|
52 |
mCubeEffects[1][0] = new MatrixEffectScale(d1);
|
|
48 | 53 |
} |
49 | 54 |
|
50 | 55 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
- simplify the Effects