summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2019-04-08 11:24:30 +0300
committerChaosus <chaosus89@gmail.com>2019-04-08 11:24:30 +0300
commitd725e4e6c0efb0db27911aa1d48c5baf81028ab3 (patch)
treea9709f9dcdd096f3008db36108570b1ab4631d83 /doc/classes
parentb07eab734a363a2867774e46d9e7ec583af902ef (diff)
Fix smooth_step to smoothstep docs
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/@GDScript.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index 17ca11490a..e3eca57f2d 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -987,9 +987,9 @@
<description>
Returns a number smoothly interpolated between the [code]from[/code] and [code]to[/code], based on the [code]weight[/code]. Similar to [method lerp], but interpolates faster at the beginning and slower at the end.
[codeblock]
- smooth_step(0, 2, 0.5) # returns 0.15
- smooth_step(0, 2, 1.0) # returns 0.5
- smooth_step(0, 2, 2.0) # returns 1.0
+ smoothstep(0, 2, 0.5) # returns 0.15
+ smoothstep(0, 2, 1.0) # returns 0.5
+ smoothstep(0, 2, 2.0) # returns 1.0
[/codeblock]
</description>
</method>