Skip to content

Commit

Permalink
Reverted circle particle rotation to previous behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Start committed Mar 16, 2015
1 parent 678b3dc commit f7af5a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixi-particles",
"version": "1.4.0",
"version": "1.4.1",
"main": "dist/pixi-particles.min.js",
"dependencies": {
"pixi.js": "*"
Expand Down
6 changes: 2 additions & 4 deletions dist/pixi-particles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! PixiParticles 1.4.0 */
/*! PixiParticles 1.4.1 */
/**
* @module cloudkid
*/
Expand Down Expand Up @@ -1759,9 +1759,7 @@
helperPoint.x = Math.random() * this.spawnCircle.radius;
helperPoint.y = 0;
//rotate the point to a random angle in the circle
var angle = Math.random() * 360;
p.rotation += angle;
ParticleUtils.rotatePoint(angle, helperPoint);
ParticleUtils.rotatePoint(Math.random() * 360, helperPoint);
//offset by the circle's center
helperPoint.x += this.spawnCircle.x;
helperPoint.y += this.spawnCircle.y;
Expand Down
4 changes: 2 additions & 2 deletions dist/pixi-particles.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "PixiParticles",
"version" : "1.4.0",
"version" : "1.4.1",
"description" : "Particle system for PixiJS",
"url" : "http://github.com/CloudKidStudio/PixiParticles",
"output" : "pixi-particles",
Expand Down
4 changes: 1 addition & 3 deletions src/Emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,7 @@
helperPoint.x = Math.random() * this.spawnCircle.radius;
helperPoint.y = 0;
//rotate the point to a random angle in the circle
var angle = Math.random() * 360;
p.rotation += angle;
ParticleUtils.rotatePoint(angle, helperPoint);
ParticleUtils.rotatePoint(Math.random() * 360, helperPoint);
//offset by the circle's center
helperPoint.x += this.spawnCircle.x;
helperPoint.y += this.spawnCircle.y;
Expand Down

0 comments on commit f7af5a9

Please sign in to comment.