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

Wave.Noisy(float, float) Method

Computes for a Noisy Wave. Always multiply this to the original value.

public static float Noisy(float amplitude, float baseValue);

Parameters

amplitude System.Single
Maximum and minimum values

baseValue System.Single
Offset from the result

Returns

System.Single
The computed value for the wave