Gun makes you clip through the floor

So i was in a bunker and i decided to shoot upwards with a automatic gun and i noticed something weird not only could i only move side ways i would float against objects it was until i kept firing against an object i went through the floor.

I play on pc with a controller