Skip to content

Conversation

@Jondolf
Copy link
Member

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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

2 participants