private static float MIN_BEAM_HEIGHT = 50;
public void fireBeam()
{
Vector2f[] p = new Vector2f[5];
p[0] = new Vector2f(0,0);
p[1] = new Vector2f(130,0);
p[2] = new Vector2f(350,0);
p[3] = new Vector2f(850,0);
p[4] = new Vector2f(1950,0);
OrbBeam ob = new OrbBeam(this,p,2f,true,0.3f,0.8f,1,0.85f,20,MIN_BEAM_HEIGHT);
ob.spawn(this.position,new Vector2f(-75.3f,0),Prototyp.fx);
Vector2f[] p2 = new Vector2f[5];
p2[0] = new Vector2f(0,0);
p2[1] = new Vector2f(130,0);
p2[2] = new Vector2f(370,0);
p2[3] = new Vector2f(870,0);
p2[4] = new Vector2f(1970,0);
OrbBeam ob2 = new OrbBeam(this,p,3f,false,0.3f,0.8f,1f,0.85f,20,MIN_BEAM_HEIGHT);
ob2.spawn(this.position,new Vector2f(-75.3f,0),Prototyp.fx);
Vector2f[] p3 = new Vector2f[4];
p3[0] = new Vector2f(0,0);
p3[1] = new Vector2f(200,0);
p3[2] = new Vector2f(840,0);
p3[3] = new Vector2f(940,0);
OrbBeam ob3 = new OrbBeam(this,p3,3f,Prototyp.random.nextInt(2) == 0 ? false : true,1f,1f,1f,0.85f,15,MIN_BEAM_HEIGHT-10);
ob3.spawn(this.position,new Vector2f(-75.3f,0),Prototyp.fx);
Vector2f[] p4 = new Vector2f[4];
p4[0] = new Vector2f(0,0);
p4[1] = new Vector2f(200,0);
p4[2] = new Vector2f(440,0);
p4[3] = new Vector2f(940,0);
OrbBeam ob4 = new OrbBeam(this,p3,55f,Prototyp.random.nextInt(2) == 0 ? false : true,1f,1f,1f,0.3f,15,MIN_BEAM_HEIGHT-40);
ob4.spawn(this.position,new Vector2f(-75.3f,0),Prototyp.fx);
/*
Vector2f[] p5 = new Vector2f[4];
p5[0] = new Vector2f(0,0);
p5[1] = new Vector2f(200,0);
p5[2] = new Vector2f(440,0);
p5[3] = new Vector2f(940,0);
OrbBeam ob5 = new OrbBeam(this,p3,25f,Prototyp.random.nextInt(2) == 0 ? false : true,1f,1f,1f,0.4f,0,MIN_BEAM_HEIGHT-40);
ob5.spawn(this.position,new Vector2f(-75.3f,0),Prototyp.fx);
*/
Vector2f[] p6 = new Vector2f[4];
p6[0] = new Vector2f(0,0);
p6[1] = new Vector2f(200,0);
p6[2] = new Vector2f(440,0);
p6[3] = new Vector2f(940,0);
OrbBeam ob6 = new OrbBeam(this,p3,20f,Prototyp.random.nextInt(2) == 0 ? false : true,1f,1f,1f,0.8f,0,MIN_BEAM_HEIGHT-40);
ob6.spawn(this.position,new Vector2f(-75.3f,0),Prototyp.fx);
min_y = Math.min(ob.getMinNormalWidth(),ob2.getMinNormalWidth());
max_y = Math.max(ob.getMaxNormalWidth(),ob2.getMaxNormalWidth());