Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix rotation multiplication order in transform_to_position #575

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Dec 5, 2024

Objective

Fixes #522.

The order of multiplication for the quaternions in transform_to_position seems to be wrong, which can cause desync between Transform rotation and Rotation when position_to_transform in SyncConfig is false.

Solution

Flip the order of multiplication where relevant.

There is now no desync:

2024-12-05.15-38-44.mp4

@Jondolf Jondolf added C-Bug Something isn't working A-Transform Relates to transforms or physics positions labels Dec 5, 2024
@Jondolf Jondolf merged commit 628215a into main Dec 6, 2024
4 checks passed
@Jondolf Jondolf deleted the fix-rotation-multiplication-order branch December 6, 2024 12:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-Transform Relates to transforms or physics positions C-Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect sync between Transform::rotation and Rotation 2
1 participant