From: Alan Alpert Date: Thu, 11 Aug 2011 10:01:09 +0000 (+1000) Subject: Get Custom particle example rotating again X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=576f769d82782f5321ff81ceb9458a2c38d83bf2;p=konrad%2Fqtdeclarative.git Get Custom particle example rotating again Change-Id: I9045f9b76f7c681cf828aa60659abb4c6b521e11 Reviewed-on: http://codereview.qt.nokia.com/2856 Reviewed-by: Alan Alpert Reviewed-by: Qt Sanity Bot --- diff --git a/examples/declarative/particles/custom/custom.qml b/examples/declarative/particles/custom/custom.qml index 3938705..7a6b51d 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{