package revert.Entities;

import revert.MainScene.World;

import com.kgp.util.Vector2;

public class BulletFactory {

	Player parent;
	World world;
	
	public BulletFactory(World world, Player p)
	{
		this.world = world;
		this.parent = p;
	}
	
	public Bullet spawnBullet()
	{
		Bullet b = new Bullet(world, parent.getMode());
		Vector2 v = new Vector2(parent.getCenterXPosn(), parent.getCenterYPosn());
		v.add(parent.getAim());
		
		b.setPosition(v.x, v.y);
		
		v = parent.getAim().clone();
		v.normalize();
		v.mult(.5f);
		b.setVelocity(v.x, v.y);
		
		b.setOrientation(v.angle());
		
		return b;
	}
	
}

@@ -400,34 +400,8 @@
 ));%0A
-%09%09v.add(parent.getAim());%0A
 %09%09%0A%09
@@ -490,10 +490,10 @@
 ult(
-.5
+10
 f);%0A

Fix bullet velocity