Thanks for your help.
But I still got the problem to transform the vertical speed when the ball hits a flat surface, the ground for example. Instead of flying upwards and still flying on x and y, it just fly upwards.
The upper part shows how it should look, the part below shows how it actually look if I use vec_bounce to change the movement.
Regards
TSGames