3rd-person-camera

Is there anybody who has the code for a 3rd-person-camera that works really
with collision and without mistakes?