refactoring collision mesh