ParticleShape3D QML Type
为发射器和影响器提供三维形状。更多
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
。
© 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.