Fix incorrect Curve3D.interpolate_baked()
description
The offset is in 3D units, not pixels. This closes https://github.com/godotengine/godot-docs/issues/4339.
This commit is contained in:
parent
339b64697c
commit
5a9600cd24
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@
|
|||
<argument index="1" name="cubic" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a point within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a pixel distance along the curve.
|
||||
Returns a point within the curve at position [code]offset[/code], where [code]offset[/code] is measured as a distance in 3D units along the curve.
|
||||
To do that, it finds the two cached points where the [code]offset[/code] lies between, then interpolates the values. This interpolation is cubic if [code]cubic[/code] is set to [code]true[/code], or linear if set to [code]false[/code].
|
||||
Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough).
|
||||
</description>
|
||||
|
|
Loading…
Reference in a new issue