Ping Pong (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Ping Pong
'Ping Pong' LogiX node
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.

Node Menu

Math
Back Binary Constants DateTime Enums Matrix Physics
Quantity Random Rect Rotation Shaping TimeSpan Abs
Acos Asin Atan Atan2 Avg Ceil Ceil To Int
Clamp Clamp01 Constant Lerp Constant Slerp Cos Cosine Lerp Cubic Lerp
Exp Floor Floor To Int Greatest Common Divisor Inverse Lerp Is Between Least Common Multiple
Lerp Log Log N Log10 Max Min Multi Lerp
Multi Slerp Nth Root Ping Pong Pow Remap Remap -1..1 to 0..1 Repeat
Repeat01 Round Round To Int Sigmoid Sign Simplex Noise Sin
Slerp Smooth Lerp Sqrt Tan