- Joined
- Oct 18, 2007
- Messages
- 930
I need a value, that value is going to increase a stored value over time untill it reaches a stored max value.
For making this simpler to understand lets say we are going to increase a unit's size over time.
NB: Theese numbers below here attached to the variables must mach everytime, not depending on the current value
The units start size 1(SZ) will be increase to 3(EZ) over 2 seconds(T). It will increase the size with the value every 0.035(I) Interval.
The end variable SI will be the value added to the stored size value
An optimized formula is appriciated
Please post if you know.
For making this simpler to understand lets say we are going to increase a unit's size over time.
NB: Theese numbers below here attached to the variables must mach everytime, not depending on the current value
The units start size 1(SZ) will be increase to 3(EZ) over 2 seconds(T). It will increase the size with the value every 0.035(I) Interval.
The end variable SI will be the value added to the stored size value
SZ = Starting Size
EZ = Ending Size
SI = Size Increasement <---Variable i Need!
T = Time it takes
I = Interval
EZ = Ending Size
SI = Size Increasement <---Variable i Need!
T = Time it takes
I = Interval
An optimized formula is appriciated
Please post if you know.
Last edited: