jumping is physics stuff. google Euler Integration code