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

Update the integration parameter delta time #418

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

Aceeri
Copy link
Contributor

@Aceeri Aceeri commented Aug 11, 2023

This is expected to be accurate by a good bit of users of the library, including rapier's KCC impl here. So we should probably keep it updated/accurate with what the simulation is actually stepping by.

Some thoughts: We might want to do this in a separate function from step_simulation, in something like PreUpdate or First, because a lot of users are likely to have their systems ordered before PhysicsSet::StepSimulation. This means there would be a 1 frame lag here, so we'd be reading the previous frame time rather than next.

@Aceeri Aceeri changed the title Make sure the integration parameter delta time is accurate Update the integration parameter delta time Aug 25, 2023
@sebcrozet sebcrozet merged commit f1595ad into dimforge:master Sep 30, 2023
3 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.

2 participants