Set up box2d calculations.