Can JBox2d be deterministic?

Discuss issues specific the Java port of Box2D
lesto
Posts: 20
Joined: Tue Jun 28, 2011 6:56 am

Re: Can JBox2d be deterministic?

Postby lesto » Wed Nov 02, 2011 11:58 am

ok, it was a my fault, i used wrong variable as timestep in the second world, and also i was using reference to position instead of a copy to check the determinism. now it seems to work(on the same machine, 2000 step and is ok)

toucansam
Posts: 356
Joined: Mon Jun 08, 2009 12:21 pm
Contact:

Re: Can JBox2d be deterministic?

Postby toucansam » Wed Nov 02, 2011 12:31 pm

good to hear! thanks for testing this out. fingers crossed for different machines

lesto
Posts: 20
Joined: Tue Jun 28, 2011 6:56 am

Re: Can JBox2d be deterministic?

Postby lesto » Thu Nov 03, 2011 1:24 pm

here the code i've written so far.

It is a netbeans project, it should be plug-n-play, or you can find the dependencies in the lib folder. it will run 10 step on 2 asincronous world, and then check the result of the first world with a preloaded file.

if you can test it on your machine and post results, i'll be very glad.

here the link:
http://www.megaupload.com/?d=ISXDSISO


Return to “Java”



Who is online

Users browsing this forum: No registered users and 1 guest