update method

  1. @override
void update(
  1. double dt
)
override

Updates the _timer of this Particle.

Implementation

@override
void update(double dt) {
  speed.addScaled(acceleration, dt);
  position
    ..addScaled(speed, dt)
    ..addScaled(acceleration, -dt * dt * 0.5);
  super.update(dt);
}