refactor physics of sphere.