ParticleModelShape3D QML Type
为发射器和影响器提供来自模型的粒子形状。更多
Import Statement: | import QtQuick3D.Particles3D |
Since: | Qt 6.2 |
Inherits: |
属性
详细描述
粒子模型形状(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.