26 Q_PROPERTY(QVector3D direction READ direction WRITE setDirection NOTIFY directionChanged)
27 Q_PROPERTY(QVector3D directionVariation READ directionVariation WRITE setDirectionVariation NOTIFY directionVariationChanged)
28 Q_PROPERTY(
bool normalized READ normalized WRITE setNormalized NOTIFY normalizedChanged)
29 QML_NAMED_ELEMENT(VectorDirection3D)
30 QML_ADDED_IN_VERSION(6, 2)
33 QQuick3DParticleVectorDirection(QObject *parent =
nullptr);
35 QVector3D direction()
const;
36 QVector3D directionVariation()
const;
37 bool normalized()
const;
40 void setDirection(
const QVector3D &direction);
41 void setDirectionVariation(
const QVector3D &directionVariation);
42 void setNormalized(
bool normalized);
45 void directionChanged();
46 void directionVariationChanged();
47 void normalizedChanged();
50 QVector3D sample(
const QQuick3DParticleData &d) override;
51 QVector3D m_direction = {0.0f, 100.0f, 0.0f};
52 QVector3D m_directionVariation;
53 bool m_normalized =
false;