DynamicBurst3D QML Type
Raffiche dinamiche dell'emettitore. Altro...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.3 |
| Inherits: |
Proprietà
- TriggerMode : enumeration
- amountVariation : int
- enabled : bool
- triggerMode : ShapeType
Descrizione dettagliata
Questo elemento definisce le raffiche di particelle nel sistema di particelle ( ParticleEmitter3D). Queste raffiche sono dinamiche, il che significa che vengono valutate mentre il sistema di particelle è in esecuzione. Utilizzarle al posto di " EmitBurst3D ", ad esempio quando l'emettitore si sposta, in modo che l'emissione avvenga nella posizione corretta.
Ad esempio, per emettere 100 particelle al secondo 1 e 200 particelle al secondo 2:
ParticleEmitter3D {
...
emitBursts: [
DynamicBurst3D {
time: 1000
amount: 100
},
DynamicBurst3D {
time: 2000
amount: 200
}
]
}Documentazione delle proprietà
TriggerMode : enumeration
Definisce la modalità di trasmissione a raffica.
| Costante | Descrizione |
|---|---|
DynamicBurst3D.TriggerTime | Le particelle vengono emesse quando è previsto l'time e del burst. |
DynamicBurst3D.TriggerStart | Le particelle vengono emesse quando viene emessa la particella seguita. Nota: questa proprietà funziona esclusivamente con gli emettitori di scia. Nota: in questa modalità, le proprietà " |
DynamicBurst3D.TriggerEnd | Le particelle vengono emesse quando termina l'emissione della particella seguita ( lifeSpan ).Nota: questa proprietà è limitata e funziona solo con gli emettitori di scia. Nota: in questa modalità, le proprietà |
amountVariation : int
Questa proprietà definisce la variazione casuale nella quantità di particelle emesse.
Ad esempio, per ottenere un intervallo casuale compreso tra 0 e 10
DynamicBurst3D {
time: 1000
amount: 5
amountVariation: 5
}Il valore predefinito è 0.
enabled : bool
Se l’opzione "Enabled" è impostata su " false", questa raffica non emetterà alcuna particella.
Il valore predefinito è " true".
triggerMode : ShapeType
Questa proprietà definisce la modalità di emissione.
Il valore predefinito è « TriggerMode.TriggerTime ».
© 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.