Tank help

I have everything set up but i want to shoot a ball without it going one place like this

[ ]== ooooooooooooo
^ ^
tank pointing right ball moving right

the ball goes straight
but when i turn it goes like this

|| oooooooooooo
|_| ^
^ ball moving right
tank pointing up

how do i fix that?
i must be confusing u

in the edit add actuator, there is a little L, press that button to make it local rather than global.