It can probably be done using a "advanced" lerp function depending if you want a regular increase or not ... using lerp the problem is the third parameter and math is my nemesis so ... i let "expert" give you a more complete answer ! ... it can perhaps be done using a "sin" too
A very interesting post (not as mine ;-p) about this kind of effects interpolation
thanks for this very interesting post !
Perhaps something more simple ... if you add dt to a variable every tick, it adds 1 to this variable every second so consider "x" = "targetvalue-value" must be reach in 6 seconds perhaps :
every tick :
value = value + dt * (x/6) ?naelian2012-06-14 01:44:46