I'm trying to make a shotgun and this is happening

I’m trying to make a shotgun and when i shoot at a certain angle all the bullet go together into a line

http://s16.postimg.org/ceybyieud/ssssssss.png

degree+= 0.05f;
		bullets.addBullet(new Bullet(GameWindow.getViewportWidth()/2, GameWindow.getViewportHeight()/2, new Vector2(10,10), 0, new Vector2((float)(100+Math.cos(degree)*360),(float)(100+Math.sin(degree)*360))), false, 1);
		bullets.addBullet(new Bullet(GameWindow.getViewportWidth()/2 + 20, GameWindow.getViewportHeight()/2 -20, new Vector2(10,10), 0, new Vector2((float)(100+Math.cos(degree)*360),(float)(100+Math.sin(degree)*360))), false, 1);
		bullets.addBullet(new Bullet(GameWindow.getViewportWidth()/2 - 20, GameWindow.getViewportHeight()/2 +20, new Vector2(10,10), 0, new Vector2((float)(100+Math.cos(degree)*360),(float)(100+Math.sin(degree)*360))), false, 1);

We need a lot more code than that , we need to see how the bullets move and use the numbers you inputted.

Has been asked before: http://www.java-gaming.org/topics/bullet-shooting-in-mouse-direction/34029/view.html
Just use vectors right and don’t use degrees…

Edit: was a bit quick with my response and missing the point… yeah show more code and mockup the result you want to have in an image editing program. Looking at the provided image, it seems like the angle is reapplied to the bullet each frame!?

Rename it to “spiral gun” and call it a feature, not a bug. Problem solved.

Are those bullets flying linear outwards or along the spiral. If they are flying linear then its that you add 0.05 to the angle each time you shoot.