public void setTurretDir(Point p)  //ôڵķ
	{
		int length=(int)Math.hypot(p.x-x,p.y-y);
		if(0==length) { return; }  //Tankغ򲻸ı
		turretDirx=x+TURRETLENGTH*(p.x-x)/length;
		turretDiry=y+TURRETLENGTH*(p.y-y)/length;

		nowAngel=Math.atan2(x-p.x,y-p.y);
		
		if(oldAngel!=nowAngel)
		{
			turnAngel=oldAngel-nowAngel;
			oldAngel=nowAngel;
			
			trans.rotate(turnAngel,32,32);
			bTurretImg=new BufferedImage(64,64,BufferedImage.TYPE_4BYTE_ABGR);
			g2=bTurretImg.createGraphics();
			g2.setTransform(trans);
			if(this.camp) { g2.drawImage(turretImg[0],null,null); }
			else { g2.drawImage(turretImg[1],null,null); }
		}
		
	}