diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-12-01 16:23:09 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-12-01 16:23:34 +0100 |
commit | 5a9600cd24881c3b5357e484fb06b36f4a1e244d (patch) | |
tree | ac009c523d156c40e75273e41633546e626072fe /doc/classes | |
parent | 339b64697cefce637b473cf8aee6df8bb7fe05d9 (diff) |
Fix incorrect `Curve3D.interpolate_baked()` description
The offset is in 3D units, not pixels.
This closes https://github.com/godotengine/godot-docs/issues/4339.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Curve3D.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Curve3D.xml b/doc/classes/Curve3D.xml index a6a0e0c33d..bda04f010b 100644 --- a/doc/classes/Curve3D.xml +++ b/doc/classes/Curve3D.xml @@ -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> |