fix exception
transition distance in orbitCamera when switching to another viewPoint + refactoring