I use the coco2dx to build my game.It run well in the win32.
But when i put it on the android.It will be crash.
I found the Box2d world-step() cause the values become NaN
I don't know how to debug the C++ on eclipse.So i use the CCLOG.(anyone can debug the cocos2dx on eclipse?)
this is my LOG,the body's position angle worldcenter become the NaN after world->step
Code: Select all
08-31 09:55:58.862: D/cocos2d-x debug info(4829): before world->step
08-31 09:55:58.862: D/cocos2d-x debug info(4829): angle is:0.000000
08-31 09:55:58.862: D/cocos2d-x debug info(4829): pos is:-0.576004, 3.446330
08-31 09:55:58.862: D/cocos2d-x debug info(4829): worldCenter is:-0.576004, 3.446330
08-31 09:55:58.862: D/cocos2d-x debug info(4829): lovalCenter is:0.000000, -0.000000
08-31 09:55:59.177: D/cocos2d-x debug info(4829): after world->step
08-31 09:55:59.177: D/cocos2d-x debug info(4829): angle is:nan
08-31 09:55:59.177: D/cocos2d-x debug info(4829): pos is:nan, nan
08-31 09:55:59.177: D/cocos2d-x debug info(4829): worldCenter is:nan, nan
08-31 09:55:59.177: D/cocos2d-x debug info(4829): lovalCenter is:0.000000, -0.000000