Merge pull request #63685 from aaronfranke/3.x-translated

[3.x] Fix Translated method in C# affecting the original transform
This commit is contained in:
Rémi Verschelde 2022-07-30 20:18:05 +02:00 committed by GitHub
commit 82ed8a66df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,9 +241,9 @@ namespace Godot
{ {
return new Transform(basis, new Vector3 return new Transform(basis, new Vector3
( (
origin[0] += basis.Row0.Dot(offset), origin[0] + basis.Row0.Dot(offset),
origin[1] += basis.Row1.Dot(offset), origin[1] + basis.Row1.Dot(offset),
origin[2] += basis.Row2.Dot(offset) origin[2] + basis.Row2.Dot(offset)
)); ));
} }