Gravity3D QML Type
将粒子加速到指定方向上的指定大小的矢量。更多
Import Statement: | import QtQuick3D.Particles3D |
Since: | Qt 6.2 |
Inherits: |
属性
详细说明
该元素模拟重心较远的大质量物体的重力(因此整个场景中的引力实际上是恒定的)。要模拟场景附近或内部物体的重力,请使用Attractor3D 。
属性文档
direction : vector3d |
该属性定义了重力的影响方向。数值会自动归一化为单位矢量。
默认值为(0.0, -1.0, 0.0)
(向下)。
© 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.