Skip to content

Commit

Permalink
Fix particle cell ID computation (#14993)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh committed Apr 16, 2024
1 parent 3a48e8c commit d7c3d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/Particles/particle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class Particle {
}
}

const dist = this._initialEndSpriteCellID - this._initialStartSpriteCellID;
const dist = this._initialEndSpriteCellID - this._initialStartSpriteCellID + 1;
let ratio: number;
if (this._initialSpriteCellLoop) {
ratio = Clamp(((offsetAge * changeSpeed) % this.lifeTime) / this.lifeTime);
Expand Down

0 comments on commit d7c3d40

Please sign in to comment.