box2d changed static fields to dynamic to save calculating time