瀏覽代碼

Fix typo in Using Transforms examples

Match CSharp example with GDScript example
Ian Byrne 6 年之前
父節點
當前提交
9c4a0585f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
     // Convert basis to quaternion, keep in mind scale is lost
     var a = transform.basis.Quat();
     var a = transform.basis.Quat();
-    var b = transform.basis.Quat();
+    var b = transform2.basis.Quat();
     // Interpolate using spherical-linear interpolation (SLERP).
     // Interpolate using spherical-linear interpolation (SLERP).
     var c = a.Slerp(b, 0.5f); // find halfway point between a and b
     var c = a.Slerp(b, 0.5f); // find halfway point between a and b
     // Apply back
     // Apply back