diff --git a/examples/quick/particles/affectors/content/customaffector.qml b/examples/quick/particles/affectors/content/customaffector.qml index 6fabfb3ab2..76fc4dc302 100644 --- a/examples/quick/particles/affectors/content/customaffector.qml +++ b/examples/quick/particles/affectors/content/customaffector.qml @@ -77,35 +77,14 @@ Item { //! [0] Affector { - property real coefficient: 0.1 - property real velocity: 1.5 width: parent.width height: parent.height - 100 onAffectParticles: (particles, dt) => { - /* //Linear movement - if (particle.r == 0) { - particle.r = Math.random() > 0.5 ? -1 : 1; - } else if (particle.r == 1) { - particle.rotation += velocity * dt; - if (particle.rotation >= maxAngle) - particle.r = -1; - } else if (particle.r == -1) { - particle.rotation -= velocity * dt; - if (particle.rotation <= -1 * maxAngle) - particle.r = 1; - } - */ //Wobbly movement for (var i=0; i