Gravity QML Type
用于在某个角度应用加速度。更多
Import Statement: | import QtQuick.Particles |
Inherits: |
属性
详细说明
该元素会将所有受影响的粒子加速到指定角度内的指定大小的矢量。如果角度和加速度没有变化,在发射器上设置指定的加速度会更有效。
该元素模拟重心较远的大质量物体的重力(因此整个场景的引力实际上是恒定的)。要模拟场景附近或内部物体的重力,请使用 PointAttractor。
属性文档
angle : real |
加速角。
magnitude : real |
物体每秒加速的像素数。
© 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.