28 Q_PROPERTY(QVector3D direction READ direction WRITE setDirection NOTIFY directionChanged)
29 Q_PROPERTY(QVector3D directionVariation READ directionVariation WRITE setDirectionVariation NOTIFY directionVariationChanged)
30 Q_PROPERTY(
bool normalized READ normalized WRITE setNormalized NOTIFY normalizedChanged)
31 QML_NAMED_ELEMENT(VectorDirection3D)
32 QML_ADDED_IN_VERSION(6, 2)
35 QQuick3DParticleVectorDirection(QObject *parent =
nullptr);
37 QVector3D direction()
const;
38 QVector3D directionVariation()
const;
39 bool normalized()
const;
42 void setDirection(
const QVector3D &direction);
43 void setDirectionVariation(
const QVector3D &directionVariation);
44 void setNormalized(
bool normalized);
47 void directionChanged();
48 void directionVariationChanged();
49 void normalizedChanged();
52 QVector3D sample(
const QQuick3DParticleData &d) override;
53 QVector3D m_direction = {0.0f, 100.0f, 0.0f};
54 QVector3D m_directionVariation;
55 bool m_normalized =
false;