本页内容

TrailEmitter QML Type

从其他逻辑粒子中发射逻辑粒子。更多...

Import Statement: import QtQuick.Particles
Inherits:

Emitter

属性

信号

详细描述

该元素会向ParticleSystem 中发射逻辑粒子,其起始位置基于其他逻辑粒子的位置。

属性文档

emitHeight : real

emitShape 被缩放后的高度(以像素为单位)。如果设置为TrailEmitter.ParticleSize,则高度将等于当前正在追踪的粒子的大小。

默认值为 0。

emitRatePerParticle : real

emitShape : Shape

由于“TrailEmitter ”的面积即为其追随的粒子面积,因此可以提供一个单独的形状作为其发射的形状。该形状的宽度和高度由emitWidth 和emitHeight 指定,并以被追随粒子的位置为中心。

默认形状是一个填充的矩形。

emitWidth : real

emitShape 缩放后的宽度(以像素为单位)。如果设置为TrailEmitter.ParticleSize,则宽度将等于当前正在追踪的粒子的大小。

默认值为 0。

follow : string

这是从该物体发出的逻辑粒子的类型。

velocityFromMovement : real

如果该值不为零,则发射器的任何移动都会根据其移动方向为粒子提供额外的初始速度。该额外速度向量的方向与发射器的移动方向相同,其大小等于发射器移动方向的大小乘以 velocityFromMovement。

默认值为 0。

信号文档

emitFollowParticles(Array particles, Particle followed)

当从followed 粒子中发射粒子时,会触发此信号。particles 包含一个粒子对象数组,可直接对其进行操作。

如果使用此信号处理程序,则不会触发 emitParticles 信号。

注意: 对应的处理程序 为onEmitFollowParticles 。

© 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.