translated method

Particle translated(
  1. Vector2 offset
)
inherited

Wraps this particle with a TranslatedParticle.

Statically repositioning it for the time of the lifespan.

Implementation

Particle translated(Vector2 offset) {
  return TranslatedParticle(
    offset: offset,
    child: this,
    lifespan: _lifespan,
  );
}