From 0ada1ecd3122dac8964e8b2cdcd06cd1612dbb78 Mon Sep 17 00:00:00 2001 From: TylerHeald <36490561+Tyler-Heald@users.noreply.github.com> Date: Mon, 21 Feb 2022 22:40:27 -0600 Subject: [PATCH] Update class_curve2d.rst Clarify that the position input to add_point is a position relative to the Curve2D's own position --- classes/class_curve2d.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class_curve2d.rst b/classes/class_curve2d.rst index 299aaf4fd..a42732763 100644 --- a/classes/class_curve2d.rst +++ b/classes/class_curve2d.rst @@ -92,7 +92,7 @@ Method Descriptions - void **add_point** **(** :ref:`Vector2` position, :ref:`Vector2` in=Vector2(0, 0), :ref:`Vector2` out=Vector2(0, 0), :ref:`int` at_position=-1 **)** -Adds a point to a curve at ``position``, with control points ``in`` and ``out``. +Adds a point to a curve at ``position`` relative to the Curve2D's position, with control points ``in`` and ``out``. If ``at_position`` is given, the point is inserted before the point number ``at_position``, moving that point (and every point after) after the inserted point. If ``at_position`` is not given, or is an illegal value (``at_position <0`` or ``at_position >= [method get_point_count]``), the point will be appended at the end of the point list.