Tanoda
|
Time-step independent exponential smoothing. More...
Public Member Functions | |
SmoothedFloat (float blend=0f, float deltaTime=1f) | |
void | SetBlend (float blend, float deltaTime=1f) |
float | Update (float input, float deltaTime=1f) |
Public Attributes | |
float | value = 0f |
float | delay = 0f |
bool | reset = true |
Time-step independent exponential smoothing.
When moving at a constant speed: speed * delay = Value - SmoothedFloat.value.
Definition at line 19 of file SmoothedFloat.cs.
Leap.Unity.SmoothedFloat.SmoothedFloat | ( | float | blend = 0f , |
float | deltaTime = 1f |
||
) |
Definition at line 24 of file SmoothedFloat.cs.
void Leap.Unity.SmoothedFloat.SetBlend | ( | float | blend, |
float | deltaTime = 1f |
||
) |
Definition at line 26 of file SmoothedFloat.cs.
float Leap.Unity.SmoothedFloat.Update | ( | float | input, |
float | deltaTime = 1f |
||
) |
Definition at line 30 of file SmoothedFloat.cs.
float Leap.Unity.SmoothedFloat.delay = 0f |
Definition at line 21 of file SmoothedFloat.cs.
bool Leap.Unity.SmoothedFloat.reset = true |
Definition at line 22 of file SmoothedFloat.cs.
float Leap.Unity.SmoothedFloat.value = 0f |
Definition at line 20 of file SmoothedFloat.cs.