aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/declarative/particles/custom/custom.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/particles/custom/custom.qml b/examples/declarative/particles/custom/custom.qml
index 393870527f..7a6b51d40e 100644
--- a/examples/declarative/particles/custom/custom.qml
+++ b/examples/declarative/particles/custom/custom.qml
@@ -37,10 +37,10 @@ ParticleSystem{
var theta = Math.floor(Math.random() * 6.0) / 6.0;
theta *= 2.0*Math.PI;
theta += sys.convert(sys.petalRotation);
- particle.sx = petalLength * Math.cos(theta);
- particle.sy = petalLength * Math.sin(theta);
- particle.ax = particle.sx * -0.5;
- particle.ay = particle.sy * -0.5;
+ particle.vx = petalLength * Math.cos(theta);
+ particle.vy = petalLength * Math.sin(theta);
+ particle.ax = particle.vx * -0.5;
+ particle.ay = particle.vy * -0.5;
}
}
CustomParticle{