ParticleModelShape3D QML Type

エミッタとエフェクタのモデルからパーティクルの形状を提供します。詳細...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2

プロパティ

詳細説明

ParticleModelShape3D要素は、3Dモデルからパーティクル形状を取得するために使用できます。

例えば、モデル形状のアウトラインからパーティクルを放出する場合などです:

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

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

プロパティの説明

delegate : Component

このデリゲートは、ParticleModelShape3D のモデルを定義するテンプレートを提供します。 例えば、デフォルトのマテリアルでデフォルトの球体モデルを使用する場合、次のようになります。

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

fill : bool

このプロパティは、シェイプを塗りつぶすか、シェイプのアウトラインだけを使用するかを定義します。

デフォルト値は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.