ECS refactoring for physix