update method

void update()

Implementation

void update() {
  position += velocity;
  life -= 0.02; // Adjust for trail duration
}