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