onMove method

void onMove(
  1. double speed,
  2. Vector2 displacement,
  3. Direction direction,
  4. double angle,
)

You can override this method to listen the movement of this component

Implementation

void onMove(
  double speed,
  Vector2 displacement,
  Direction direction,
  double angle,
) {}