summaryrefslogtreecommitdiff
path: root/doc/classes/@GlobalScope.xml
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-10-11 19:28:34 -0300
committerGitHub <noreply@github.com>2021-10-11 19:28:34 -0300
commitf9aec342dcd51d65c5970dd395e3c7a66cac446c (patch)
tree9d5b542652e576f865abf0c97a37ee272210ae2e /doc/classes/@GlobalScope.xml
parent9ed4f8367b29204b89f9feaf86727b24396fb180 (diff)
parent610de0974db4feb7e50c9349a8a164b6bf0f36c8 (diff)
Merge pull request #53687 from godotengine/revert-48332-implement-ping-pong
Revert "Implement reverse playback and ping-pong loop in AnimationPlayer and NodeAnimation"
Diffstat (limited to 'doc/classes/@GlobalScope.xml')
-rw-r--r--doc/classes/@GlobalScope.xml20
1 files changed, 0 insertions, 20 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml
index 66c20b8426..4b710d5f12 100644
--- a/doc/classes/@GlobalScope.xml
+++ b/doc/classes/@GlobalScope.xml
@@ -525,26 +525,6 @@
[b]Warning:[/b] Due to the way it is implemented, this function returns [code]0[/code] rather than [code]1[/code] for non-positive values of [code]value[/code] (in reality, 1 is the smallest integer power of 2).
</description>
</method>
- <method name="pingpong">
- <return type="float" />
- <argument index="0" name="value" type="float" />
- <argument index="1" name="length" type="float" />
- <description>
- Returns the [code]value[/code] wrapped between [code]0[/code] and the [code]length[/code]. If the limit is reached, the next value the function returned is decreased to the [code]0[/code] side or increased to the [code]length[/code] side (like a triangle wave). If [code]length[/code] is less than zero, it becomes positive.
- [codeblock]
- pingpong(-3.0, 3.0) # Returns 3
- pingpong(-2.0, 3.0) # Returns 2
- pingpong(-1.0, 3.0) # Returns 1
- pingpong(0.0, 3.0) # Returns 0
- pingpong(1.0, 3.0) # Returns 1
- pingpong(2.0, 3.0) # Returns 2
- pingpong(3.0, 3.0) # Returns 3
- pingpong(4.0, 3.0) # Returns 2
- pingpong(5.0, 3.0) # Returns 1
- pingpong(6.0, 3.0) # Returns 0
- [/codeblock]
- </description>
- </method>
<method name="posmod">
<return type="int" />
<argument index="0" name="x" type="int" />