| 31 | } |
| 32 | |
| 33 | void FlowField::noisePunch(float amplitude, BumpShape shape) { |
| 34 | float cx = getWidth() * 0.5f; |
| 35 | float cy = getHeight() * 0.5f; |
| 36 | float wx = getWidth() * 0.4f; |
| 37 | float wy = getHeight() * 0.4f; |
| 38 | mNoiseBias.triggerX(cx, wx, amplitude, shape); |
| 39 | mNoiseBias.triggerY(cy, wy, amplitude, shape); |
| 40 | } |
| 41 | |
| 42 | void FlowField::noisePunchX(float center, float width, float amplitude, |
| 43 | BumpShape shape) { |