Box2D api refactoring