// override this to catch stop falling events protected void stopped_falling() { if (colliding_box_ != null) { y_ = colliding_box_.y() - colliding_box_.get_height() / 2 - Settings.BOX_GAP - get_height() / 2; } if (drive_this_height_ != null) drive_this_height_.set_y(y_); }