BoundedPositionBehavior constructor
BoundedPositionBehavior({})
Implementation
BoundedPositionBehavior({
required this._bounds,
this._target,
double precision = 0.5,
super.priority,
super.key,
}) : assert(precision > 0, 'Precision must be positive: $precision'),
_previousPosition = Vector2.zero(),
_precision = precision;