Ping Pong (LogiX node)
Jump to navigation
Jump to search
Ping Pong | ||
---|---|---|
Inputs | ||
Float | N | |
Float | Length | |
Outputs | ||
Float | * |
The Ping Pong node simulates a triangle wave based on the value of Length
.
Usage
This node accepts nearly any single-number types as input and output. The exceptions to this are decimals and bytes, which if used will create a cast node.
For positive values of N
and Length
, this node will simulate moving along a triangle wave of amplitude Length / 2
and period Length * 2
, shifted upwards such that the output is between 0
and Length
. For values of N
and Length
of opposing signs, this node appears to be ill-defined, and will not continue the same pattern as positive numbers.
Examples
The following video showcases using the Ping Pong node with Elapsed Time, using Length 2.