From 7d4f53ef287da6e9c3c1d88014353cc99b4ee468 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 3 Jun 2023 20:14:23 -0700 Subject: [PATCH] Replace references to interpolate_baked with sample_baked. It looks like this method was renamed in v4, but not fully updated in beziers_and_curves.rst. --- tutorials/math/beziers_and_curves.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/math/beziers_and_curves.rst b/tutorials/math/beziers_and_curves.rst index 7d2cf87d0..3811a0c44 100644 --- a/tutorials/math/beziers_and_curves.rst +++ b/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: