/*
 *	RailSim II Rail Plugin
 *	Copyright (c) 2006 Intaanetto Teiryuujo
 */

PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Rail;
	PluginName = "Default JR-standard";
	PluginAuthor = "Okadu";
	IconTexture = "..\..\Train\Aizentranza01\Icon.png";
	Description = "World standard, Shinkansen compatible.";
}

/*
 *	参考: 60kg レール
 *	軌間: 1435[mm]
 *	レール底部最大幅: 145[mm]
 *	レール頭部最大幅: 65[mm]
 *	レール高さ: 174[mm]
 */
RailInfo{
	Gauge = 1.435;
	Height = 0.174;
	SurfaceAlt = 0.4;
	CantRatio = 180.0;
	MaxCant = 7.0;
}

SoundInfo{
	WheelSoundFile = "..\Default_JR_Narrow\Wheel.wav";
	JointInterval = 200.0;
}

/*
 *	側面ポリゴン定義
 */
Profile{
	Material{
		UseTexture = yes;
		TexFileName = "..\Default_JR_Narrow\Side.png";
		TexVPerMeter = 1.0;
	}
	//	左側
	Face{
		Vertex{
			Coord = (-0.8225, -0.174);
			Normal = (-1.0, 1.0);
			TexU = 0.0;
		}
		Vertex{
			Coord = (-0.7825, 0.0);
			Normal = (-1.0, 0.0);
			TexU = 1.0;
		}
	}
	Face{
		Vertex{
			Coord = (-0.7175, 0.0);
			Normal = (1.0, 0.0);
			TexU = 1.0;
		}
		Vertex{
			Coord = (-0.6775, -0.174);
			Normal = (1.0, 1.0);
			TexU = 0.0;
		}
	}
	//	右側
	Face{
		Vertex{
			Coord = (0.6775, -0.174);
			Normal = (-1.0, 1.0);
			TexU = 0.0;
		}
		Vertex{
			Coord = (0.7175, 0.0);
			Normal = (-1.0, 0.0);
			TexU = 1.0;
		}
	}
	Face{
		Vertex{
			Coord = (0.7825, 0.0);
			Normal = (1.0, 0.0);
			TexU = 1.0;
		}
		Vertex{
			Coord = (0.8225, -0.174);
			Normal = (1.0, 1.0);
			TexU = 0.0;
		}
	}
}

/*
 *	上面ポリゴン定義
 */
Profile{
	Material{
		UseTexture = yes;
		TexFileName = "..\Default_JR_Narrow\Top.png";
		TexVPerMeter = 1.0;
	}
	//	左側
	Face{
		Vertex{
			Coord = (-0.7825, 0.0);
			Normal = (-0.5, 1.0);
			TexU = 0.0;
		}
		Vertex{
			Coord = (-0.7175, 0.0);
			Normal = (0.5, 1.0);
			TexU = 1.0;
		}
	}
	//	右側
	Face{
		Vertex{
			Coord = (0.7175, 0.0);
			Normal = (-0.5, 1.0);
			TexU = 0.0;
		}
		Vertex{
			Coord = (0.7825, 0.0);
			Normal = (0.5, 1.0);
			TexU = 1.0;
		}
	}
}
