ParticleModelShape3D QML Type
Ofrece la forma de las partículas del modelo para emisores y afectadores. Más...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: |
Propiedades
Descripción detallada
El elemento ParticleModelShape3D se puede utilizar para obtener la forma de las partículas a partir de un modelo 3D.
Por ejemplo, para emitir partículas a partir de los contornos de la forma de un modelo:
Component {
id: suzanneComponent
Model {
source: "meshes/suzanne.mesh"
scale: Qt.vector3d(100, 100, 100)
}
}
ParticleEmitter3D {
shape: ParticleModelShape3D {
model: suzanneComponent
fill: false
}
...
}Documentación de propiedades
delegate : Component
El delegado proporciona una plantilla que define el modelo para ParticleModelShape3D. Por ejemplo, utilizando el modelo de esfera por defecto con el material por defecto
Component {
id: modelComponent
Model {
source: "#Sphere"
scale: Qt.vector3d(0.5, 0.5, 0.5)
materials: DefaultMaterial { diffuseColor: "red" }
}
}
ParticleModelShape3D {
delegate: modelComponent
}fill : bool
Esta propiedad define si la forma debe rellenarse o sólo utilizar los contornos de la forma.
El valor por defecto es true.
© 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.