ParticleSceneShape3D QML Type
为发射器和影响器提供场景中的粒子形状。更多
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.11 |
| Inherits: |
属性
- excludedNodes : list<Node>
- geometry : Node
- scene : Node
- sceneCenter : Node
- sceneExtents : Node
- shapeResolution : real
详细说明
粒子场景形状(ParticleSceneShape3D)元素可用于从三维场景中获取粒子形状。该形状根据场景中的模型将场景包络成单一形状。
例如
ParticleEmitter3D {
id: emitter
particle: particle
...
shape: ParticleSceneShape3D {
id: sceneShape
scene: sceneRoot
sceneCenter: node.scenePosition
sceneExtents: Qt.vector3d(1000, 500, 1000)
}
...
}属性文档
excludedNodes : list<Node>
此属性包含构建形状时排除在外的节点列表。如果模型是这些节点或其子节点之一,则会从形状中排除。
geometry : Node
此属性包含生成形状的几何图形。可以用它来渲染形状,使其可视化。
scene : Node
该属性包含场景的根节点。场景形状是根据场景的子模型动态计算的。如果场景发生变化,形状将重新计算。如果某个模型在场景中不可见,它就不会包含在形状中。执行时只检查节点的可见性。如果材质是全透明的,或者节点被过滤掉了,形状仍将包含这些节点,除非它们被排除在外。
sceneCenter : Node
该属性用于保存计算形状的中心点。
默认值为Qt.vector3(0, 0, 0) 。
sceneExtents : Node
此属性用于保存计算形状的外延。这些外延会添加到场景中心,任何超出该体积的多边形都会被排除在形状之外。如果该值为空,则包含所有多边形。
默认值为Qt.vector3(0, 0, 0) 。
shapeResolution : real [default: 10.0;]
该属性表示形状的分辨率。数值越大,形状与单个模型的相似度越高。
最小值为 1.0,最大值为 100.0;
© 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.