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

Fix delta_time being 0 resulting in incorrect simulation #660

Merged
merged 7 commits into from
Jun 23, 2024

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Jun 21, 2024

Fixes #659.

Bug introduced by #635.

Disclaimer: I am NOT confident about the correction, but I'm confident it's the correct place to fix :).

@Vrixyz Vrixyz marked this pull request as ready for review June 21, 2024 09:38
@@ -221,7 +221,11 @@ impl IntegrationParameters {
pub fn joint_cfm_coeff(&self) -> Real {
// Compute CFM assuming a critically damped spring multiplied by the damping ratio.
// The logic is similar to `Self::cfm_factor`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should a similar correction be applied to cfm_factor ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, the correct function referred to is probably contact_cfm_factor ?

@Vrixyz Vrixyz requested a review from sebcrozet June 21, 2024 10:18
CHANGELOG.md Outdated Show resolved Hide resolved
src/dynamics/rigid_body_set.rs Show resolved Hide resolved
src/pipeline/physics_pipeline.rs Outdated Show resolved Hide resolved
src/pipeline/physics_pipeline.rs Outdated Show resolved Hide resolved
src/pipeline/physics_pipeline.rs Outdated Show resolved Hide resolved
src/pipeline/physics_pipeline.rs Outdated Show resolved Hide resolved
@Vrixyz Vrixyz requested a review from sebcrozet June 21, 2024 15:41
@sebcrozet sebcrozet merged commit 3e8650f into dimforge:master Jun 23, 2024
5 checks passed
@sebcrozet
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

delta_time being 0 results in incorrect simulation
2 participants