![]() |
Qt 6.x
The Qt SDK
|
#include "qquick3dparticleattractor_p.h"
#include "qquick3dparticlerandomizer_p.h"
#include "qquick3dparticleutils_p.h"
Go to the source code of this file.
Variables | |
QT_BEGIN_NAMESPACE const float | MIN_DURATION = 0.001f |
\qmltype Attractor3D \inherits Affector3D \inqmlmodule QtQuick3D.Particles3D | |
QT_BEGIN_NAMESPACE const float MIN_DURATION = 0.001f |
\qmltype Attractor3D \inherits Affector3D \inqmlmodule QtQuick3D.Particles3D
Attracts particles towards a position or a shape.
This element attracts particles towards a position inside the 3D view. To model the gravity of a massive object whose center of gravity is far away, use \l Gravity3D.
The attraction position is defined either with the \l {Node::position}{position} and \l positionVariation or with \l shape. If both are defined, \l shape is used.
Definition at line 25 of file qquick3dparticleattractor.cpp.
Referenced by QQuick3DParticleAttractor::affectParticle(), and QQuick3DParticleEmitter::emitParticle().