Skip to content

Commit 7d4f53e

Browse files
authored
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.
1 parent 830c425 commit 7d4f53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/math/beziers_and_curves.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Traversal at constant speed, then, can be done with the following pseudo-code:
262262

263263
func _process(delta):
264264
t += delta
265-
position = curve.interpolate_baked(t * curve.get_baked_length(), true)
265+
position = curve.sample_baked(t * curve.get_baked_length(), true)
266266

267267
.. code-tab:: csharp
268268

@@ -271,7 +271,7 @@ Traversal at constant speed, then, can be done with the following pseudo-code:
271271
public override void _Process(double delta)
272272
{
273273
_t += (float)delta;
274-
Position = curve.InterpolateBaked(_t * curve.GetBakedLength(), true);
274+
Position = curve.SampleBaked(_t * curve.GetBakedLength(), true);
275275
}
276276

277277
And the output will, then, move at constant speed:

0 commit comments

Comments
 (0)