'Dynamic cube around the char

I have a scene and I would like to create a zone around the char (could be a cube or cylinder at the beginning). Also, it should be dynamic because my char is moving (when my char is in the squat position the cube should shrink down ) and the distance between the char's skin and the cube surface should be parametric like 50 cm or 10 cm. How can I do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source