In class we made it so that the object would shoot missiles. When I did it the missiles would always push the object away while shooting but the ability to shoot was still there so I was still successful at getting the effect I wanted, unfortunately I left the files of this project on the computers at uni so I had to recreate the effect to the best of my ability.
Above is the code I used to make the missiles shoot, below is a video of the effects.
I decided to try to do the missiles again and this time I got the results that I got last time I did it.
I am happy with the result of this but I do wish I could have made it so the ball wouldn't fly back after every shot and so that the ball could move around and shoot in a set direction.