Project

General

Profile

« Previous | Next » 

Revision 2666a48c

Added by Leszek Koltunski about 5 years ago

1. Change the API of Dynamic: split makeNowRunFor into two separate 'setDuration' and 'resetToBeginning'
2. Major changes to the 'Dynamic' app so that we can check more about the Dynamics.

View differences:

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.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);
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);
137 137

  
138 138
    float wave2 = mHeight*( 0.05f + 0.002f*wind);
139 139
    windFactor21.set1(wave2);

Also available in: Unified diff