DynamicBurst3D QML Type

动态发射器脉冲串。更多

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.3
Inherits:

EmitBurst3D

属性

详细描述

该元素定义了ParticleEmitter3D 中的粒子爆发。这些爆发是动态的,即在粒子系统运行时对其进行评估。例如,当发射器移动时,可以使用这些突发来代替EmitBurst3D ,以便在正确的位置进行发射。

例如,在 1 秒时发射 100 个粒子,在 2 秒时发射 200 个粒子:

ParticleEmitter3D {
    ...
    emitBursts: [
        DynamicBurst3D {
            time: 1000
            amount: 100
        },
        DynamicBurst3D {
            time: 2000
            amount: 200
        }
    ]
}

属性文档

TriggerMode : enumeration

定义爆发模式。

常数说明
DynamicBurst3D.TriggerTime当突发time 时发射粒子。
DynamicBurst3D.TriggerStart当后续粒子发射时,粒子才会被发射。

注: 该属性仅限于与跟踪发射器一起使用。

注: 在此模式下,timeduration 属性不起作用。

常数说明
DynamicBurst3D.TriggerEnd当跟随粒子lifeSpan 结束时发射粒子。

注: 该属性仅限于在轨迹发射器中使用。

注: 在此模式下,timeduration 属性不起作用。


amountVariation : int

该属性定义粒子发射量的随机变化。

例如,随机范围在 0 到 10 之间。

DynamicBurst3D {
    time: 1000
    amount: 5
    amountVariation: 5
}

默认值为0


enabled : bool

如果启用设置为false ,则此突发不会发射任何粒子。

默认值为true


triggerMode : ShapeType

该属性定义发射模式。

默认值为TriggerMode.TriggerTime


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