Redirect the gravity vector. The cube accelerates toward the new direction, and the contacted wall becomes its support surface.