It's the same used on zelda code. When the cam hit's the floor it approaches the player. The kh camera hit's the floor and stays there. I like much more when the camera approaches the player, but i tryed to implement it in several ways but all of them failed.