diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-08-11 20:01:09 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-15 06:48:25 +0200 |
commit | 576f769d82782f5321ff81ceb9458a2c38d83bf2 (patch) | |
tree | 6826e64354f8b60b6cc2bb155f73931f3c8ddaa7 /examples/declarative | |
parent | 5781598747ac8342a05e9a8f48ea09a7e0444467 (diff) |
Get Custom particle example rotating again
Change-Id: I9045f9b76f7c681cf828aa60659abb4c6b521e11
Reviewed-on: http://codereview.qt.nokia.com/2856
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/particles/custom/custom.qml | 8 |
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{ |