Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 3D rotation update in
transform_to_position
(#520)
# Objective Fixes #516. Rotation is currently updated incorrectly in 3D by `transform_to_position`. It uses addition and subtraction instead of multiplication for quaternions. This causes clear desync between `Transform` rotation and `Rotation` when `SyncConfig::position_to_transform` is `false` and the `Transform` is changed: https://github.com/user-attachments/assets/5b51480e-6f55-4317-9ed1-ec02f9c4d640 ## Solution Fix the rotation update. We can also remove the normalization, because individual quaternion multiplications should remain normalized, assuming the inputs are normalized (and there aren't too many successive rotations). Now, the desync is fixed: https://github.com/user-attachments/assets/8922832f-21b4-4ed9-947d-bd4b77786647
- Loading branch information