Skip to content

Commit

Permalink
Merge pull request #89843 from kleonc/csharp-transform3d-interpolate-…
Browse files Browse the repository at this point in the history
…with-first-scale-then-rotate

[C#] Fix `Transform3D.InterpolateWith` applying rotation before scale
  • Loading branch information
akien-mga committed Mar 26, 2024
2 parents cff7de0 + e2ed63b commit 60d37f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ internal void SetQuaternionScale(Quaternion quaternion, Vector3 scale)

private void Rotate(Quaternion quaternion)
{
this *= new Basis(quaternion);
this = new Basis(quaternion) * this;
}

private void SetDiagonal(Vector3 diagonal)
Expand Down

0 comments on commit 60d37f1

Please sign in to comment.