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

Repeat simulation with different dt #7

Open
proepkes opened this issue Sep 19, 2020 · 0 comments
Open

Repeat simulation with different dt #7

proepkes opened this issue Sep 19, 2020 · 0 comments

Comments

@proepkes
Copy link

proepkes commented Sep 19, 2020

If a simulation (using forces) is repeated with a lower deltatime (for example 1/120 instead of 1/60), the resulting state will be different even after the 1/120-simulation processed twice as many frames

Is it possible to repeat a simulation with a different framerate and come up with the same result?

I think setting the force to 0 after it has been applied causes the differences, maybe it should be lowered depending on dt? Or the force has to be applied without using dt?

b->force.Set( 0, 0 );

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