You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -717,6 +717,20 @@ public readonly Basis Scaled(Vector3 scale)
717
717
returnb;
718
718
}
719
719
720
+
/// <summary>
721
+
/// Returns this basis with each axis scaled by the corresponding component in the given <paramref name="scale"/>. The basis matrix's columns are multiplied by <paramref name="scale"/>'s components. This operation is a local scale (relative to self).
722
+
/// </summary>
723
+
/// <param name="scale">The scale to introduce.</param>
724
+
/// <returns>The scaled basis matrix.</returns>
725
+
publicreadonlyBasisScaledLocal(Vector3scale)
726
+
{
727
+
Basisb=this;
728
+
b.Row0*=scale;
729
+
b.Row1*=scale;
730
+
b.Row2*=scale;
731
+
returnb;
732
+
}
733
+
720
734
/// <summary>
721
735
/// Assuming that the matrix is a proper rotation matrix, slerp performs
722
736
/// a spherical-linear interpolation with another rotation matrix.
0 commit comments