FrictionSim constructor

FrictionSim({
  1. required double position0,
  2. required double velocity0,
  3. double drag = 0.135,
  4. double restVelocityThreshold = 1.0,
})

Implementation

FrictionSim({
  required this.position0,
  required this.velocity0,
  this.drag = 0.135,
  this.restVelocityThreshold = 1.0,
}) : _logDrag = math.log(drag);