matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

Trying to change seed, to take control of deterministic behavior

Open chrisbarry opened this issue 6 months ago • 0 comments

I'm trying to get deterministic behavior, which is modifiable by changing a seed, I've found this SO page:

https://stackoverflow.com/questions/59210236/outcome-always-different-in-matter-js-physics-engine

I've got no problem with determinism, it's that changing that seed value:

Matter.Common._seed = 12345678;

Doesn't actually change the behaviour of everything. I can modify some other parameter in my code, but it would be neat to just be able to change the seed and get different outcomes (that repeat each time).

Just to confirm, as people have complained about this, there seems to be no problem with determinism, seems very solid to me.

Is it possible to change the seed or something like it?

chrisbarry avatar Dec 23 '23 21:12 chrisbarry