Gravity3D QML Type
将粒子加速至指定方向上、具有指定大小的矢量。更多...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: |
属性
详细说明
该元素用于模拟重心位于远处的质量体所产生的引力(因此该引力在整个场景中实质上是恒定的)。若要模拟位于场景附近或场景内部的物体的引力,请使用Attractor3D 。
属性文档
direction : vector3d
该属性定义了重力作用的方向。数值将自动归一化为单位向量。
默认值为(0.0, -1.0, 0.0) (向下)。
magnitude : real
该属性定义了每秒位置变化量的大小。负值表示与direction 相反方向的加速度。
默认值为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.