Add smooth_updater::value
This commit is contained in:
parent
12b6b3169c
commit
2d05fe9ea9
1 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ namespace psemek::util
|
|||
value_ = lerp(target_, value_, std::exp(- dt * speed_));
|
||||
}
|
||||
|
||||
Value const & value() const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
private:
|
||||
Value & value_;
|
||||
Value target_;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue