Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to change seed, to take control of deterministic behavior #1269

Open
chrisbarry opened this issue Dec 23, 2023 · 0 comments
Open

Trying to change seed, to take control of deterministic behavior #1269

chrisbarry opened this issue Dec 23, 2023 · 0 comments

Comments

@chrisbarry
Copy link

chrisbarry commented Dec 23, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant