ParticleModelShape3D QML Type

이미터와 이펙터를 위한 모델에서 파티클 모양을 제공합니다. 더 보기...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2

프로퍼티

상세 설명

3D 모델에서 파티클 모양을 가져오는 데 ParticleModelShape3D 요소를 사용할 수 있습니다.

예를 들어 모델 셰이프의 윤곽선에서 파티클을 방출하는 데 사용할 수 있습니다:

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.