update method

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

Updates the _timer of this Particle.

Implementation

@override
void update(double dt) {
  super.update(dt);
  _elapsed += dt;
  speed.add(acceleration * dt);
  position.add(speed * dt);
}