dx method
- double time
override
The velocity of the object in the simulation at the given time.
Implementation
@override
double dx(double time) {
final double t = clampDouble(time / _duration, 0.0, 1.0);
return velocity * math.pow(1.0 - t, _kDecelerationRate - 1.0);
}