dx method

  1. @override
double dx (
  1. double time
)
override

The velocity of the object in the simulation at the given time.

Implementation

@override
double dx(double time) {
  final double t = (time / _duration).clamp(0.0, 1.0) as double;
  return _distance * _flingVelocityPenetration(t) * velocity.sign / _duration;
}