Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3dparticleattractor.cpp File Reference

(ed39d7a18a4ddfc0cc9197b3b0863c1443fe3b8a)

+ Include dependency graph for qquick3dparticleattractor.cpp:

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
 

Variable Documentation

◆ MIN_DURATION

QT_BEGIN_NAMESPACE const float MIN_DURATION = 0.001f

\qmltype Attractor3D \inherits Affector3D \inqmlmodule QtQuick3D.Particles3D

Attracts particles towards a position or a shape.

Since
6.2

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().