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

Fixed interpolation #384

Merged
merged 3 commits into from
Jul 8, 2023
Merged

Conversation

Anti-Alias
Copy link
Contributor

Interpolation values "start" and "end" are being overwritten every frame rather than only when the user explicitly changes their transform. This causes bevy_rapier to not interpolate properly (if at all).

This PR addresses the following issue:
#341

@@ -329,21 +329,30 @@ pub fn apply_rigid_body_user_changes(
};

for (handle, global_transform, mut interpolation) in changed_transforms.iter_mut() {
let mut transform_changed = None;
Copy link
Contributor Author

@Anti-Alias Anti-Alias Jun 18, 2023

Choose a reason for hiding this comment

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

Caching the transform_changed value for potential later use as an Option<bool>.

@sebcrozet sebcrozet merged commit 97abe8f into dimforge:master Jul 8, 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.

None yet

2 participants