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