I do that. Not with painful things, though.
Also, if I step on a crack or slab edge with one foot I try to get the other to step on another with the same part of the foot. If there's nothing more distracting on my mind.
I also draw imaginary lines from the corners of things, usually three from each: parallel with the object's edges, and another from the point at 45 degrees to the other two, or otherwise equidistant from them. Whole rooms become crisscross with lines like imaginary laser beams, and I try not to tread on any. and if I do, the above rule applies.
Again, if my mind is not sufficiently engaged elsewhere.
__________________
| (• ◡•)| (❍ᴥ❍ʋ)
|