Do bullet calculations have random values?
For example: A ball hits brick wall(100 boxes), will these boxes fall the same way and on the same positions after computing it on another computer?
And if i calculate same scene on CPU and GPU, will results be same?
If there is some randomness, are there any way i can set the same "random seed" for a scene(to make result be identical on any computer) ?
Random or not ?
-
- Posts: 33
- Joined: Fri Oct 26, 2012 1:50 pm
Re: Random or not ?
Have you tried searching the board for 'deterministic'? This question has already been answered before.
In short, because of minor hardware differences in computers architectures, things do stray apart and in a network game a server must sync the engines of the clients.
Furthermore, it is possible to have a deterministic/repeatable simulation on one computer, given that everything is properly reset, and that you use the same random seed on the btSequentialImpulseConstraintSolver.
In short, because of minor hardware differences in computers architectures, things do stray apart and in a network game a server must sync the engines of the clients.
Furthermore, it is possible to have a deterministic/repeatable simulation on one computer, given that everything is properly reset, and that you use the same random seed on the btSequentialImpulseConstraintSolver.