MyFollowBehavior constructor

MyFollowBehavior({
  1. required ReadOnlyPositionProvider target,
  2. required Vector2 movementWindow,
  3. double maxSpeed = double.infinity,
  4. bool horizontalOnly = false,
  5. bool verticalOnly = false,
  6. Vector2? targetSize,
  7. int? priority,
})

Implementation

MyFollowBehavior({
  required super.target,
  required this.movementWindow,
  super.maxSpeed = double.infinity,
  super.horizontalOnly = false,
  super.verticalOnly = false,
  Vector2? targetSize,
  super.priority,
}) : targetSize = targetSize ?? Vector2.zero();