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

Remove solver iteration loop #121

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Remove solver iteration loop #121

merged 3 commits into from
Aug 11, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Aug 9, 2023

Removes IterationCount and the solver iteration loop.

It's recommended to use 1 iteration and multiple substeps due to better convergence, so the iteration loop is quite redundant. The delta time given to constraints was also incorrect when there were many iterations, because the iteration count wasn't being taken into account for the delta time, which can result in overshooting.

I also updated the simulation loop docs.

@Jondolf Jondolf added the A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on label Aug 9, 2023
@Jondolf Jondolf merged commit efb5eaf into main Aug 11, 2023
3 checks passed
@Jondolf Jondolf deleted the remove-iteration-count branch August 11, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant