Explorar o código

Fix typo in Using Transforms examples

Match CSharp example with GDScript example
Ian Byrne %!s(int64=6) %!d(string=hai) anos
pai
achega
9c4a0585f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/3d/using_transforms.rst

+ 1 - 1
tutorials/3d/using_transforms.rst

@@ -374,7 +374,7 @@ Converting a rotation to quaternion is straightforward.
 
     // Convert basis to quaternion, keep in mind scale is lost
     var a = transform.basis.Quat();
-    var b = transform.basis.Quat();
+    var b = transform2.basis.Quat();
     // Interpolate using spherical-linear interpolation (SLERP).
     var c = a.Slerp(b, 0.5f); // find halfway point between a and b
     // Apply back