Destroy this particle
()
| 462 | |
| 463 | /** Destroy this particle */ |
| 464 | destroy() |
| 465 | { |
| 466 | const destroyCallback = this.emitter.particleDestroyCallback; |
| 467 | const c = this.colorEnd; |
| 468 | this.color.set(c.r, c.g, c.b, c.a); |
| 469 | this.size.set(this.sizeEnd, this.sizeEnd); |
| 470 | this.destroyed = true; |
| 471 | destroyCallback?.(this); |
| 472 | } |
| 473 | |
| 474 | /** Render the particle, automatically called each frame */ |
| 475 | render() |
no test coverage detected