このページでは

Gravity3D QML Type

粒子を、指定された方向・指定された大きさのベクトルまで加速します。詳細...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2
Inherits:

Affector3D

プロパティ

詳細な説明

この要素は、重心が遠くにある(したがって、シーン全体で重力の影響が実質的に一定である)質量の大きな物体の重力をモデル化します。シーンの近くや内部にある物体の重力をモデル化するには、Attractor3D を使用してください。

プロパティのドキュメント

direction : vector3d

このプロパティは、重力が作用する方向を定義します。値は自動的に単位ベクトルに正規化されます。

デフォルト値は(0.0, -1.0, 0.0) (下向き)です。

magnitude : real

このプロパティは、1秒あたりの位置変化の大きさを定義します。負の値の場合、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.