Skip to content

Commit b454604

Browse files
committedJan 16, 2025
Fix #7006. Particle DeathZone changed coordinates to use worldPosition
1 parent 073dd3f commit b454604

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/gameobjects/particles/zones/DeathZone.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ var DeathZone = new Class({
6262
*/
6363
willKill: function (particle)
6464
{
65-
var withinZone = this.source.contains(particle.x, particle.y);
65+
var pos = particle.worldPosition;
66+
var withinZone = this.source.contains(pos.x, pos.y);
6667

6768
return (withinZone && this.killOnEnter || !withinZone && !this.killOnEnter);
6869
}

0 commit comments

Comments
 (0)
Please sign in to comment.