Search found 5 matches

by marvelyyc
Wed Sep 03, 2014 10:07 am
Forum: R.U.B.E discussion
Topic: the same version of Box2d cause the different result
Replies: 1
Views: 6740

the same version of Box2d cause the different result

I'm develop a Box2d game with cocos2dx 3.1.And the version Box2d in cooc2dx 3.1 is 2.3.0. Before this,I have test my game in the "Tests Framework" of Box2d downloaded from the github. The version of Box2d is 2.3.0 too. I add a "car" in the game and when press the keyboard.It will...
by marvelyyc
Mon Sep 01, 2014 6:30 am
Forum: Box2D tutorial discussion
Topic: the c++ Box2d on android cause the values NaN
Replies: 6
Views: 34970

Re: the c++ Box2d on android cause the values NaN

The problem has been fixed!Although i don't the reason.
I change my cocos2dx version from 3.3 to 3.1.So it works well.
If someone have this problem can try this method.

Thank you iforce2d. Thank you for your patience and help all the time.
by marvelyyc
Mon Sep 01, 2014 12:00 am
Forum: Box2D tutorial discussion
Topic: the c++ Box2d on android cause the values NaN
Replies: 6
Views: 34970

Re: the c++ Box2d on android cause the values NaN

Thank your for reply. All the input values is set in the RUBE. I don't do anything after the .json file loaded. "can't be loaded" means:sometimes when l load the .json file on the android.The app maybe crash on the function "world = json.readFromString(content, errMag);". I think...
by marvelyyc
Sun Aug 31, 2014 9:06 am
Forum: Box2D tutorial discussion
Topic: the c++ Box2d on android cause the values NaN
Replies: 6
Views: 34970

Re: the c++ Box2d on android cause the values NaN

Thank your reply.I found the reason. Because i add too many body in the World.If add small numbers bodies it will be run well!! If i add too many bodies it will be NaN!! But why? why the Box2d C++ on android have this problem?How did you guys fix this problem? And when i use the RUBE to build Box2D ...
by marvelyyc
Sun Aug 31, 2014 6:10 am
Forum: Box2D tutorial discussion
Topic: the c++ Box2d on android cause the values NaN
Replies: 6
Views: 34970

the c++ Box2d on android cause the values NaN

hi guys I have problem about the Box2D c++ on android. 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 ca...