Revision b62eb334
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/wind/WindEffectsManager.java | ||
---|---|---|
131 | 131 |
shearFactor.set2(tanAngle); |
132 | 132 |
scaleFactor.set1(1/(float)Math.sqrt(1+tanAngle*tanAngle)); |
133 | 133 |
|
134 |
windDynamic1.setDuration( wind > 0 ? 900 + 10000/wind : Long.MAX_VALUE);
|
|
135 |
windDynamic2.setDuration( wind > 0 ? 720 + 8000/wind : Long.MAX_VALUE);
|
|
136 |
windDynamic3.setDuration( wind > 0 ? 900 + 10000/wind : Long.MAX_VALUE);
|
|
134 |
windDynamic1.makeRunNowFor( wind > 0 ? 900 + 10000/wind : Long.MAX_VALUE);
|
|
135 |
windDynamic2.makeRunNowFor( wind > 0 ? 720 + 8000/wind : Long.MAX_VALUE);
|
|
136 |
windDynamic3.makeRunNowFor( wind > 0 ? 900 + 10000/wind : Long.MAX_VALUE);
|
|
137 | 137 |
|
138 | 138 |
float wave2 = mHeight*( 0.05f + 0.002f*wind); |
139 | 139 |
windFactor21.set1(wave2); |
Also available in: Unified diff
Many things.
1) make the Dynamic.setDuration() able to be called AFTER the Dynamic has already been run. (and rename it to 'makeRunNowFor()' )
2) remove the automatic removal of zero Effects from EffectQueues.
3) adjust several Apps to cope with 2)
4) add post-rotation to Rubik (still not finished)