RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.MathHelpers

Wave Class

Math helper for easily computing Wave behaviors.

public static class Wave

Inheritance System.Object 🡒 Wave

Methods  
InvertedSawtooth(float, float, float, float) Computes for an Inverted Sawtooth Wave. Always multiply this to the original value.
Noisy(float, float) Computes for a Noisy Wave. Always multiply this to the original value.
Sawtooth(float, float, float, float) Computes for a Sawtooth Wave. Always multiply this to the original value.
Sine(float, float, float, float) Computes for a Sine Wave. Always multiply this to the original value.
Square(float, float, float, float) Computes for a Square Wave. Always multiply this to the original value.
Triangle(float, float, float, float) Computes for a Triangle Wave. Always multiply this to the original value.