HIBIIRO
How to Prevent Bones from Passing Through Floors or Walls in Blender (Floor Constraint)
Introduction
Here is a quick way to prevent character bones (such as feet or IK targets) from passing through a floor, wall, or ceiling in Blender using the built-in Floor bone constraint.
Bone & Constraint Setup
1. Add the Controlled Bone and Target Floor Bone

Prepare the bone you want to restrict and a reference bone representing the floor or wall plane (they can live inside the same Armature or separate Armatures).
2. Add the “Floor” Bone Constraint
Select the bone to restrict, enter Pose Mode, open the Bone Constraints tab in the Properties Editor, and choose Add Bone Constraint → Relationship → Floor:

Set the Target to your floor bone:

Choose the Min/Max axis (`X`, `Y`, `Z`, `-X`, `-Y`, or `-Z`) depending on whether you are blocking a floor, wall, or ceiling. Now the bone stops cleanly at the boundary plane whenever you drag it across:
