ParticleModelShape3D QML Type

Bietet die Partikelform aus dem Modell für Emitter und Affektoren an. Mehr...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2

Eigenschaften

Detaillierte Beschreibung

Das Element ParticleModelShape3D kann verwendet werden, um die Partikelform aus einem 3D-Modell zu erhalten.

Zum Beispiel, um Partikel von Umrissen einer Modellform zu emittieren:

Component {
    id: suzanneComponent
    Model {
        source: "meshes/suzanne.mesh"
        scale: Qt.vector3d(100, 100, 100)
    }
}

ParticleEmitter3D {
    shape: ParticleModelShape3D {
        model: suzanneComponent
        fill: false
    }
    ...
}

Dokumentation der Eigenschaft

delegate : Component

Der Delegat stellt eine Vorlage zur Verfügung, die das Modell für ParticleModelShape3D definiert. z.B. die Verwendung des Standard-Kugelmodells mit Standardmaterial

Component {
    id: modelComponent
    Model {
        source: "#Sphere"
        scale: Qt.vector3d(0.5, 0.5, 0.5)
        materials: DefaultMaterial { diffuseColor: "red" }
    }
}
ParticleModelShape3D {
    delegate: modelComponent
}

fill : bool

Diese Eigenschaft legt fest, ob die Form gefüllt werden soll oder nur die Umrisse der Form verwendet werden sollen.

Der Standardwert ist true.


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