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>
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{