Wander3D QML Type
将随机波形曲线应用于粒子。更多...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: |
属性
- fadeInDuration : int
- fadeOutDuration : int
- globalAmount : vector3d
- globalPace : vector3d
- globalPaceStart : vector3d
- uniqueAmount : vector3d
- uniqueAmountVariation : real
- uniquePace : vector3d
- uniquePaceVariation : real
详细说明
该元素为粒子应用随机的波浪曲线。曲线可以结合全局值(对所有粒子都相同)和唯一值(随机不同)。
属性文档
fadeInDuration : int
该属性定义了影响器的淡入持续时间(以毫秒为单位)。经过此时间后,漂移效果将完全生效。设置此属性有助于从特定位置或形状开始发射,否则在开始时,漂移效果也会影响位置。
默认值为0 。
fadeOutDuration : int
此属性定义了效果器淡出所需的持续时间(以毫秒为单位)。设置此属性有助于减少粒子生命周期结束时的偏移,例如,当与Attractor3D 结合使用时,可确保最终位置与shape 相匹配。
默认值为0 。
globalAmount : vector3d
该属性定义了每个粒子在曲线两端移动的距离。因此,如果该值为 (100, 10, 0),则所有粒子将在 (100, 10, 0) 和 (-100, -10, 0) 之间游走。
默认值为(0.0, 0.0, 0.0) 。
globalPace : vector3d
此属性定义了每个粒子每秒沿曲线游走的频率。
默认值为(0.0, 0.0, 0.0) 。
globalPaceStart : vector3d
该属性定义了步频(频率)的起始点。有效范围为 0 .. 2 * PI。例如,要对步频起始点的 x 坐标进行动画效果,请设置:
PropertyAnimation on globalPaceStart {
loops: Animation.Infinite
duration: 2000
from: Qt.vector3d(0, 0, 0)
to: Qt.vector3d(Math.PI * 2, 0, 0)
}默认值为(0.0, 0.0, 0.0) 。
uniqueAmount : vector3d
该属性定义了每个粒子在曲线两端移动的最大距离。
默认值为(0.0, 0.0, 0.0) 。
uniqueAmountVariation : real
此属性定义了“uniqueAmount ”在 0.0 到 1.0 之间的变化范围。当数量变化量为 0.0 时,每个粒子都会达到最大数量;当其值为 0.5 时,每个粒子的数量会在 0.5 到 1.5 之间。 例如,如果“uniqueAmount ”的值为 (100, 50, 20),且“uniqueAmountVariation”的值为 0.1,则各粒子的最大波距将在 (110, 55, 22) 与 (90, 45, 18) 之间随机分布。
默认值为0.0 。
uniquePace : vector3d
此属性定义了每个粒子每秒沿曲线移动的独特速度(频率)。
默认值为(0.0, 0.0, 0.0) 。
uniquePaceVariation : real
该属性定义了每个粒子的独特步速(频率)变化范围,取值范围为 0.0 到 1.0。当变化值为 0.0 时,所有粒子均以相同的频率游走。 例如,如果“uniquePace ”的值为 (1.0, 2.0, 4.0),而“uniquePaceVariation”的值为 0.5,则粒子的波动速度将在 (2.0, 4.0, 8.0) 和 (0.5, 1.0, 2.0) 之间随机变化。
默认值为0.0 。
© 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.