Landing gear is the undercarriage of an aircraft or spacecraft and may be used for either takeoff or landing.