![]() |
TopDown Engine v4.3
|
This class lets you output the value corresponding to one of the basic signal types it contains. Useful to draw basic signal curves. More...
Public Types | |
enum | SignalType { Sine , Pulse , Sawtooth , Square , Triangle , DigitalNoise , WhiteNoise , PerlinNoise , ValueNoise , AnimationCurve , MMTween } |
Static Public Member Functions | |
static float | GetValue (float time, SignalType signalType, float phase, float amplitude, float frequency, float offset, bool Invert=false, AnimationCurve curve=null, MMTween.MMTweenCurve tweenCurve=MMTween.MMTweenCurve.LinearTween) |
Returns the corresponding value based on the selected SignalType for a given time value More... | |
static float | GetValueNormalized (float time, SignalType signalType, float phase, float amplitude, float frequency, float offset, bool Invert=false, AnimationCurve curve=null, MMTween.MMTweenCurve tweenCurve=MMTween.MMTweenCurve.LinearTween, bool clamp=true, float clampMin=0f, float clampMax=1f, bool backAndForth=false, float backAndForthTippingPoint=0.5f) |
Static Protected Member Functions | |
static float | ValueNoise (float time, float frequency) |
This class lets you output the value corresponding to one of the basic signal types it contains. Useful to draw basic signal curves.
|
static |
Returns the corresponding value based on the selected SignalType for a given time value
time | |
signalType | |
phase | |
amplitude | |
frequency | |
offset | |
Invert |
|
static |
|
staticprotected |