本页内容

Turbulence QML Type

根据噪声图像提供类似流体的力。更多...

Import Statement: import QtQuick.Particles
Inherits:

ParticleAffector

属性

详细说明

“湍流”元素会根据其影响范围对噪声源进行缩放,并利用该噪声源的旋度来生成力矢量。

湍流元素需要固定尺寸。与其他影响器不同,0x0 尺寸的湍流元素不会影响任何粒子。

噪声源应为相对平滑的黑白噪声,例如佩林噪声。

属性文档

noiseSource : url

用于生成湍流的源图像。该图像将被缩放至元素的大小,因此尺寸相等或更大的图像将产生更好的效果。调整此图像是调整涡旋位置或数量等行为的唯一方法。

源图像应为相对平滑的黑白噪声图像,例如佩林噪声。若未提供源图像,系统将使用默认图像。

strength : real

速度向量在任意一点上的模值在零到根号二之间变化。随后将其与强度相乘,即可得到受湍流影响的粒子的每秒速度。

© 2026 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.