correctPositionFromCollision method

  1. @override
void correctPositionFromCollision(
  1. Vector2 position
)
override

Implementation

@override
void correctPositionFromCollision(Vector2 position) {
  super.correctPositionFromCollision(position);
  if (this is Jumper) {
    if ((this is BlockMovementCollision)) {
      final isV = (this as BlockMovementCollision)
              .lastCollisionData
              ?.direction
              .isVertical ==
          true;
      if (isV) {
        return;
      }
    }
  }
  _stop();
}