Revision 27e12007
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/wind/WindEffectsManager.java | ||
---|---|---|
62 | 62 |
windDynamic.add(windFactor1); |
63 | 63 |
windDynamic.add(windFactor2); |
64 | 64 |
windDynamic.setMode(Dynamic.MODE_JUMP); |
65 |
windDynamic.setAccessMode(Dynamic.ACCESS_SEQUENTIAL); |
|
65 | 66 |
} |
66 | 67 |
|
67 | 68 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Dynamics: Introduce 2 Modes of operation:
- 'random access' mode, where we are able to call a single Dynamic from multiple thread simultaneously.
- 'sequential' mode, which only permits sequential interpolation from one client.
The second mode has an advantage when one needs to change mDuration: it keeps on interpolating smoothly. In the first mode, this is not possible.