Turbulence QML Type
Provides fluid-like forces from a noise image. More...
|import QtQuick.Particles 2.15
The Turbulence Element scales the noise source over the area it affects, and uses the curl of that source to generate force vectors.
Turbulence requires a fixed size. Unlike other affectors, a 0x0 Turbulence element will affect no particles.
The source should be relatively smooth black and white noise, such as perlin noise.
The source image to generate the turbulence from. It will be scaled to the size of the element, so equal or larger sizes will give better results. Tweaking this image is the only way to tweak behavior such as where vortices are or how many exist.
The source should be a relatively smooth black and white noise image, such as perlin noise. A default image will be used if none is provided.
The magnitude of the velocity vector at any point varies between zero and the square root of two. It will then be multiplied by strength to get the velocity per second for the particles affected by the turbulence.