Refactored physics controller to separate integration, and collision detection and resolving services