Refactored the CharacterController to integrate better with the physics system.