Turbulence QML Type
Provides fluid-like forces from a noise image. More...
|Import Statement:||import QtQuick.Particles 2.12|
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.
noiseSource : url
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.
strength : real
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.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.