Skip to content

Commit bf3954e

Browse files
authored
Merge pull request godotengine#7463 from nanodeath/interpolate_baked
Replace references to interpolate_baked with sample_baked.
2 parents 4a33e37 + 7d4f53e commit bf3954e

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)