The Same .json File, but Different Results.

General discussion about the R.U.B.E editor
Post Reply
sijieshuai
Posts: 13
Joined: Tue May 14, 2013 1:51 pm

The Same .json File, but Different Results.

Post by sijieshuai »

I have a .json file exported by R.U.B.E, and I ran it on my device(iPhone), but I got different result animations on R.U.B.E and my device. I suspected that the different time steps size leaded to those. So, I want to know the time step size you used in R.U.B.E, and any other reasons for the different results, thanks very much!!! :D
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: The Same .json File, but Different Results.

Post by iforce2d »

It's probably due to differences in floating point calculation between the two processor architectures. You cannot assume that you will get the same results on different devices, not even between different types of iPhone. Try googling "box2d determinism" for many discussions about this subject.
Post Reply