ReferenceScripting APIMotionMathspingPong
MotionMaths.pingPong
methodT going up to length and back down, again and again.
| Name | pingPong |
|---|---|
| Kind | method of MotionMaths |
| Called as | maths.pingPong(…) |
| As a node | Ping Pong (logic graph) |
| Since | 0.4 |
Syntax
pingPong( t: number, length: number): numberParameters
| Name | Type | Description |
|---|---|---|
t | number | The value |
length | number | How far it goes |
Returns
number: 0 to length.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.