diff --git a/libs/util/include/psemek/util/smooth_updater.hpp b/libs/util/include/psemek/util/smooth_updater.hpp index aea3fe28..8192155f 100644 --- a/libs/util/include/psemek/util/smooth_updater.hpp +++ b/libs/util/include/psemek/util/smooth_updater.hpp @@ -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_;