Replace Matrix3 with System.Numerics.Matrix3x2 (#27443)
Replace Matrix3 with Matrix3x2
This commit is contained in:
@@ -65,7 +65,7 @@ public sealed class DirectionIcon : TextureRect
|
||||
if (_rotation != null)
|
||||
{
|
||||
var offset = (-_rotation.Value).RotateVec(Size * UIScale / 2) - Size * UIScale / 2;
|
||||
handle.SetTransform(Matrix3.CreateTransform(GlobalPixelPosition - offset, -_rotation.Value));
|
||||
handle.SetTransform(Matrix3Helpers.CreateTransform(GlobalPixelPosition - offset, -_rotation.Value));
|
||||
}
|
||||
|
||||
base.Draw(handle);
|
||||
|
||||
Reference in New Issue
Block a user