rotating method

Particle rotating({
  1. double from = 0,
  2. double to = pi,
})

Rotates this particle from a given angle to another one in radians using RotatingParticle.

Implementation

Particle rotating({
  double from = 0,
  double to = pi,
}) {
  return RotatingParticle(
    child: this,
    lifespan: _lifespan,
    from: from,
    to: to,
  );
}