24 Q_PROPERTY(qreal factor READ factor WRITE setFactor NOTIFY factorChanged)
25 Q_PROPERTY(qreal threshold READ threshold WRITE setThreshold NOTIFY thresholdChanged)
26 QML_NAMED_ELEMENT(Friction)
27 QML_ADDED_IN_VERSION(2, 0)
29 explicit QQuickFrictionAffector(QQuickItem *parent =
nullptr);
36 qreal threshold()
const
42 bool affectParticle(QQuickParticleData *d, qreal dt) override;
46 void factorChanged(qreal arg);
47 void thresholdChanged(qreal arg);
51 void setFactor(qreal arg)
53 if (m_factor != arg) {
55 Q_EMIT factorChanged(arg);
59 void setThreshold(qreal arg)
61 if (m_threshold != arg) {
63 Q_EMIT thresholdChanged(arg);