How to predict trajectory with cocos2dx and Box2D