Gravity3D QML Type

Accelerates particles to a vector of the specified magnitude in the specified direction. More...

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

Affector3D

Properties

Detailed Description

This element models the gravity of a massive object whose center of gravity is far away (and thus the gravitational pull is effectively constant across the scene). To model the gravity of an object near or inside the scene, use Attractor3D.

Property Documentation

direction : vector3d

This property defines the direction the gravity will affect toward. Values will be automatically normalized to a unit vector.

The default value is (0.0, -1.0, 0.0) (downwards).


magnitude : real

This property defines the magnitude in position change per second. Negative magnitude accelerates the opposite way from the direction.

The default value is 100.0.


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