Camera earth collision refactoring.