I have variable that defines player's height in my 3D game. With the step of the player, I wan't to make a "spring" effect, lowering player's height and returning it back in 0.25s.
So my question is how do I make such a transition? Player's height in 48, how do I smoothly lower in to 46, and then smoothly increase it back to 48?