x method Null safety
- double time
override
The position of the object in the simulation at the given time.
Implementation
@override
double x(double time) {
final double t = clampDouble(time / _duration, 0.0, 1.0);
return position + _distance * _flingDistancePenetration(t) * velocity.sign;
}