浏览代码

Fix smooth_step to smoothstep docs

Chaosus 6 年之前
父节点
当前提交
d725e4e6c0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      doc/classes/@GDScript.xml

+ 3 - 3
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>