public ShipBody(Ship parent){
			this.parent = parent;
			xorigin = parent.getX();
			yorigin = parent.getY();
			body = new ArrayList<Point2D.Double>();
			
			int widthPoints = (int) (parent.speed/4 + parent.power + parent.hitpoints/100);
			int heightPoints = (int) (parent.speed/2 + parent.power/4 + parent.hitpoints/100);
			//int totalPoints = 
			if(widthPoints <= 3){
				width = .5;
			}else{
				width = parent.map(widthPoints, 1, 2250, 2, 6);
			}
			
			if(heightPoints <=3){
				height = .5;
			}else{
				height = parent.map(heightPoints, 1, 1750, 2, 6);
			}
			
			width = width * Ship.PIXEL_PER_UNIT;
			height = height * Ship.PIXEL_PER_UNIT;
			
			e1Att = new Point2D.Double(xorigin-width, yorigin+0);
			e2Att = new Point2D.Double(xorigin+width, yorigin+0);
			
			//body = new Rectangle((int)(xorigin-width), (int)(yorigin-height), (int)width*2, (int)height*2);
			body.add(new Point2D.Double(xorigin-width, yorigin-height));
			body.add(new Point2D.Double(xorigin+width, yorigin-height));
			body.add(new Point2D.Double(xorigin+width, yorigin+height));
			body.add(new Point2D.Double(xorigin-width, yorigin+height));
			//Y = (X-A)/(B-A) * (D-C) + C	
		}