11 #include <rtti/rtti.h>
79 SmoothOperator(
const T& currentValue,
float smoothTime,
float maxSpeed);
87 T&
update(
const T& targetValue,
float deltaTime);
144 mTarget = targetValue;
145 smooth<T>(mValue, targetValue, mVelocity, deltaTime, mSmoothTime, mMaxSpeed);
T mTarget
Definition: smoothdamp.h:132
void setValue(const T &value)
const T & getVelocity() const
Definition: smoothdamp.h:112
T & getValue()
Definition: smoothdamp.h:97
float mSmoothTime
Definition: smoothdamp.h:48
Definition: smoothdamp.h:62
T & update(const T &targetValue, float deltaTime)
Definition: smoothdamp.h:142
virtual ~BaseSmoothOperator()=default
SmoothOperator(const T ¤tValue, float smoothTime)
Definition: smoothdamp.h:157
BaseSmoothOperator(float smoothTime)
Definition: smoothdamp.h:34
float mMaxSpeed
Definition: smoothdamp.h:49
const T & getTarget() const
Definition: smoothdamp.h:102
Definition: templateapp.h:17
T & getTarget()
Definition: smoothdamp.h:107
BaseSmoothOperator()=default
T mVelocity
Definition: smoothdamp.h:133
T mValue
Definition: smoothdamp.h:131
BaseSmoothOperator(float smoothTime, float maxSpeed)
Definition: smoothdamp.h:41
Definition: smoothdamp.h:20
T & getVelocity()
Definition: smoothdamp.h:117
const T & getValue() const
Definition: smoothdamp.h:92