Turbulence QML Type
从噪声图像中提供类似流体的力。更多
Import Statement: | import QtQuick.Particles |
Inherits: |
属性
- noiseSource : url
- strength : real
详细说明
湍流元素(Turbulence Element)会在其影响的区域内缩放噪声源,并使用噪声源的卷曲度来生成力矢量。
湍流需要一个固定大小。与其他影响因子不同,0x0 的湍流元素不会影响任何粒子。
噪声源应该是相对平滑的黑白噪声,例如perlin 噪声。
属性文档
noiseSource : url |
生成湍流的源图像。它将根据元素的大小进行缩放,因此相同或更大的尺寸会产生更好的效果。调整该图像是调整涡流位置或数量等行为的唯一方法。
图像源应该是相对平滑的黑白噪点图像,例如perlin 噪点。如果没有提供,将使用默认图像。
strength : real |
任意点的速度矢量大小在零和 2 的平方根之间变化。然后将其乘以强度,得到受湍流影响的粒子的每秒速度。
© 2025 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.