本页内容

Gravity QML Type

用于施加角加速度。更多...

Import Statement: import QtQuick.Particles
Inherits:

ParticleAffector

属性

详细说明

该元素将使所有受影响的粒子沿指定角度以指定大小的矢量方向加速。如果角度和加速度保持不变,则在发射器上设置指定的加速度会更高效。

该元素模拟了一个质心位于远处的质量体所产生的引力(因此,该引力在整个场景中实际上是恒定的)。若要模拟位于场景附近或场景内部的物体的引力,请使用 PointAttractor。

属性文档

angle : real

加速度角。

magnitude : real

物体每秒被加速的像素数。

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