Skip to content

Commit b4e7671

Browse files
committed
change Emitter's particleDrag property to particleFriction to match the changes to the physics engine
1 parent 6cde583 commit b4e7671

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/particles/arcade/Emitter.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ Phaser.Particles.Arcade.Emitter = function (game, x, y, maxParticles) {
123123
this.particleClass = null;
124124

125125
/**
126-
* The X and Y drag component of particles launched from the emitter.
127-
* @property {Phaser.Point} particleDrag
126+
* The friction component of particles launched from the emitter.
127+
* @property {number} particleFriction
128128
*/
129-
this.particleDrag = new Phaser.Point();
129+
this.particleFriction = 0;
130130

131131
/**
132132
* The angular drag component of particles launched from the emitter if they are rotating.
@@ -477,8 +477,7 @@ Phaser.Particles.Arcade.Emitter.prototype.emitParticle = function () {
477477
particle.scale.setTo(scale, scale);
478478
}
479479

480-
particle.body.drag.x = this.particleDrag.x;
481-
particle.body.drag.y = this.particleDrag.y;
480+
particle.body.friction = this.particleFriction;
482481
particle.body.angularDrag = this.angularDrag;
483482

484483
}

0 commit comments

Comments
 (0)