Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17112

Did cocos2dx PhysicsWorld has it's own randomseed?

$
0
0

@loy wrote:

hi all, i'm using cocos2dx-lua and PhysicsWorld developing my game, i create scene like this:

cc.Scene:createWithPhysics()

i created 10 physicsbody add to the scene, and let them move to the same position, and the physics world will automaticlly set the positions of these physics object, i run the code several times, i found that the final position of these objects will not be the same!

i'm ensure that i use the same random seed in lua(math.randomseed())

Did cocos2dx PhysicsWorld has it's own randomseed? or such result was because of the different frame speed? is there any way to display the same result?

any suggesion will be appreciated~

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17112

Trending Articles