Merge pull request #51008 from raulsntos/csharp-renames

This commit is contained in:
Rémi Verschelde 2021-08-06 09:07:02 +02:00 committed by GitHub
commit ba0982c51c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -207,7 +207,7 @@ namespace Godot
}
}
public Quaternion RotationQuaternion()
public Quaternion GetRotationQuaternion()
{
Basis orthonormalizedBasis = Orthonormalized();
real_t det = orthonormalizedBasis.Determinant();

View File

@ -128,9 +128,9 @@ namespace Godot
return godot_icall_GD_randi_range(from, to);
}
public static uint RandSeed(ulong seed, out ulong newSeed)
public static uint RandFromSeed(ref ulong seed)
{
return godot_icall_GD_rand_seed(seed, out newSeed);
return godot_icall_GD_rand_seed(seed, out seed);
}
public static IEnumerable<int> Range(int end)

View File

@ -124,11 +124,11 @@ namespace Godot
/* not sure if very "efficient" but good enough? */
Vector3 sourceScale = basis.Scale;
Quaternion sourceRotation = basis.RotationQuaternion();
Quaternion sourceRotation = basis.GetRotationQuaternion();
Vector3 sourceLocation = origin;
Vector3 destinationScale = transform.basis.Scale;
Quaternion destinationRotation = transform.basis.RotationQuaternion();
Quaternion destinationRotation = transform.basis.GetRotationQuaternion();
Vector3 destinationLocation = transform.origin;
var interpolated = new Transform3D();