This is the code for cocos2dx physic engine