Skip to content

Commit

Permalink
bugfix: set correct initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Jun 22, 2017
1 parent e2b259d commit 3e44c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Klak/Math/Interpolator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static Config Quick {
public FloatInterpolator(float initialValue, Config config)
{
this.config = config;
currentValue = targetValue =initialValue;
currentValue = targetValue = initialValue;
_velocity = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/Klak/Wiring/Filter/FloatFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ float EvalResponse()

void Start()
{
_floatValue = new FloatInterpolator(0, _interpolator);
_floatValue = new FloatInterpolator(EvalResponse(), _interpolator);
}

void Update()
Expand Down

0 comments on commit 3e44c06

Please sign in to comment.