ParticleShape3D QML Type
为发射器和作用器提供3D形状。更多内容...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: |
属性
详细说明
ParticleShape3D 元素支持诸如Cube 、Sphere 和Cylinder 等形状,以满足粒子效果的需求。例如,发射器可以使用shape 属性,从该形状区域内发射粒子。
形状本身不具备位置、缩放或旋转属性,而是继承自父节点的这些属性。
属性文档
ShapeType : enumeration
定义形状的类型。
| 常量 | 描述 |
|---|---|
ParticleShape3D.Cube | 立方体形状。 |
ParticleShape3D.Sphere | 球体形状。 |
ParticleShape3D.Cylinder | 圆柱体形状。 |
extents : vector3d
此属性定义了形状的边界范围。
每个轴的默认值为50 。
fill : bool
此属性用于定义图形应填充颜色,还是仅显示轮廓。
默认值为true 。
type : ShapeType
此属性定义了图形的类型。
默认值为ParticleShape3D.Cube 。
© 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.