How to stop a aircraft from floating through walls? 2D

here we go sir