Skip to content

Commit

Permalink
HOTFIX: Revert "Fix 3D rotation update in transform_to_position (Jo…
Browse files Browse the repository at this point in the history
…ndolf#520)"

This reverts commit d79bb13.
  • Loading branch information
coreh committed Dec 3, 2024
1 parent 52cbcec commit 6ac65c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,10 @@ pub fn transform_to_position(
#[cfg(feature = "3d")]
{
rotation.0 = (previous_transform.rotation
* (transform.rotation * previous_transform.rotation.inverse())
* (rotation.f32() * previous_transform.rotation.inverse()))
.adjust_precision();
+ (transform.rotation - previous_transform.rotation)
+ (rotation.f32() - previous_transform.rotation))
.normalize()
.adjust_precision();
}
}
}
Expand Down

0 comments on commit 6ac65c6

Please sign in to comment.