public Engine(Ship parent, int engineNum){
			this.parent = parent;
			this.engineNum = engineNum;
			xorigin = parent.getX();
			yorigin = parent.getY();
			int totalPoints = parent.speed+(parent.power/4);
			if(totalPoints <=2){
				engineHeight = 2;//(totalPoints - 1) / (1250 - 1) * (24-1) + 1;
				engineWidth = 1;//(totalPoints - 1) / (1250 - 1) * (6-1) + 1;
			}else{
				engineHeight = parent.map(totalPoints, 1, 1250, 2, 24);
				engineWidth = parent.map(totalPoints, 1, 1250, 2, 6);
			}
			engineHeight *= Ship.PIXEL_PER_UNIT;
			engineWidth *= Ship.PIXEL_PER_UNIT;
			
			
			if(engineNum == 0){
				eAtt=parent.body.e1Att;
			}else{
				eAtt=parent.body.e2Att;
			}
			
			engine = new ArrayList<Point2D.Double>();
			engine.add(new Point2D.Double(0, 0));
			engine.add(new Point2D.Double(0, 0));
			engine.add(new Point2D.Double(0, 0));
			engine.add(new Point2D.Double(0, 0));	
		}