If you want to position your camera further away from the character based on the size of the character, you should attach the camera to a spring arm component. The spring arm component has a length property. Besides that, the spring arm can handle camera collision with environment nicely.
You could calculate the size of your character by the size of its Collision capsule or collision bounds.