How to increase reproduciblity in Bullet?

Post Reply
PeterE
Posts: 1
Joined: Tue Mar 31, 2015 9:50 am

How to increase reproduciblity in Bullet?

Post by PeterE »

I am new to Bullet. I would like to use it for simulations.
Therefore the behavior of multiple runs should be exactly the same.

I adjusted one of the examples (AppCcdPhysicsDemo) to represent a bouncing ball. This ball is dropped from a height of 3 meter. However, if I run this simple model 4 times, each time the behavior is different.
I guess it has to do with the stepsize, this should be (1/60s) but it seems to fluctuate between 16.000 and 18.000µs.

I tried to solve it by changing in the C++ code Floating point model to precise, but that didn't solve the issue.

What can I do to get reproducible results?
Post Reply