EmitBurst3D QML Type
Raffiche di emettitori dichiarativi. Altro...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: | |
| Inherited By: |
Proprietà
Descrizione dettagliata
Questo elemento definisce le raffiche di particelle nell'ParticleEmitter3D. Queste raffiche sono statiche, il che significa che vengono valutate all'avvio del sistema di particelle. Ciò consente prestazioni migliori rispetto a DynamicBurst3D e raffiche al di fuori del tempo del sistema di particelle (ad esempio, una raffica a 1000 ms mentre il tempo del sistema parte da 2000 ms).
Nota: EmitBurst3D utilizza le proprietà dell’emettitore (posizione, rotazione ecc.) presenti all’avvio del sistema di particelle. Per gli emettitori dinamici, utilizzare invece DynamicBurst3D.
Ad esempio, per emettere 100 particelle all’inizio e 50 particelle dopo 2 secondi, in modo che entrambi i burst durino 200 millisecondi:
ParticleEmitter3D {
...
emitBursts: [
EmitBurst3D {
time: 0
amount: 100
duration: 200
},
EmitBurst3D {
time: 2000
amount: 50
duration: 200
}
]
}Documentazione delle proprietà
amount : int
Questa proprietà definisce la quantità di particelle emesse durante il burst.
Il valore predefinito è 0.
duration : int
Questa proprietà definisce la durata del burst. Il valore predefinito è 0, il che significa che tutte le particelle verranno emesse all’inizio di time. Se viene impostata una durata, l’emissione delle particelle viene distribuita tra time e time + duration.
Ad esempio, per ottenere una frequenza di emissione di 400 tra 1000 e 1200 millisecondi:
EmitBurst3D {
time: 1000
amount: 80
duration: 1200
}Il valore predefinito è 0.
time : int
Questa proprietà definisce il momento, espresso in millisecondi, in cui ha inizio l'emissione del burst.
Il valore predefinito è 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.