Motion
Get Motion

ReferenceScripting APIMotionMathspingPong

MotionMaths.pingPong

method

T going up to length and back down, again and again.

NamepingPong
Kindmethod of MotionMaths
Called asmaths.pingPong(…)
As a nodePing Pong (logic graph)
Since0.4

Syntax

pingPong(    t: number,    length: number): number

Parameters

NameTypeDescription
tnumberThe value
lengthnumberHow far it goes

Returns

number: 0 to length.