소스 검색

Merge pull request #7463 from nanodeath/interpolate_baked

Replace references to interpolate_baked with sample_baked.
Matthew 2 년 전
부모
커밋
bf3954ef84
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tutorials/math/beziers_and_curves.rst

+ 2 - 2
tutorials/math/beziers_and_curves.rst

@@ -262,7 +262,7 @@ Traversal at constant speed, then, can be done with the following pseudo-code:
 
     func _process(delta):
         t += delta
-        position = curve.interpolate_baked(t * curve.get_baked_length(), true)
+        position = curve.sample_baked(t * curve.get_baked_length(), true)
 
  .. code-tab:: csharp
 
@@ -271,7 +271,7 @@ Traversal at constant speed, then, can be done with the following pseudo-code:
     public override void _Process(double delta)
     {
         _t += (float)delta;
-        Position = curve.InterpolateBaked(_t * curve.GetBakedLength(), true);
+        Position = curve.SampleBaked(_t * curve.GetBakedLength(), true);
     }
 
 And the output will, then, move at constant speed: