/*
 *	RailSim II Train Plugin
 *	(C) 2009 JUNKFUL
 */

PluginHeader{
	RailSimVersion = 2.01;
	PluginType = Train;
	PluginName = "パンタテスト";
	PluginAuthor = "s.sasaki";
	IconTexture = "../common_ss_t2/583_sen/icon.png";
	Description = "【Ver2.00】";
	Description = " 本プラグインは2両を1つにまとめています。1+1両の場合とは動作が若干異なりますのでご注意ください。";
	Description = "";
	Description = " 209系を基本とした1M方式の交流近郊型電車。東北地方の客車列車等を置き換えるべく製造された。";
	Description = " 1000番台は区間により色は異なるものの、「黒磯〜青森」の東北本線の交流区間全線で目にすることができる。利府支線・仙山線・常磐線でも運用される。";
	Description = "";
	Description = "";
	Description = "";
	Description = "東北本線の交流区間”全線”で目にすることができる。";
	Description = "大事なことなので二度言いました。";
}

TrainInfo{
	FrontLimit = 20.0;
	TailLimit = -20.0;
	MaxVelocity = 110.0;
	MaxAcceleration = 2.5;
	MaxDeceleration = 3.5;
	DoorClosingTime = 3.5;
}

DefineSwitch "電源(パンタグラフ)" {
	GroupCommon = "701-1000電源";
	Entry = "切";
	Entry = "入";
}

PrimaryAssembly{
	Axle "DummyWheel11"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1;
		Symmetric = 8;
		Coord = (1.0, 0.43);
	}
	Axle "DummyWheel12"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1;
		Symmetric = 8;
		Coord = (-1.0, 0.43);
	}
	
	
	Body "MainBody"{
		ModelFileName = "";
		JointZY "DummyWheel11"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.0, 0.0);
		}
		JointZY "DummyWheel12"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.0, 0.0);
		}
	}

	
/* --- パンタグラフ --- */
	Object3D "パンタ台座-1"{
		ModelFileName = "ps105_1.x";
		AlphaZeroTest = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.65, 5.5);
		}
	}
	Object3D "パンタ下-1-1"{
		ModelFileName = "ps105_2-1.x";
		AlphaZeroTest = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		NoCastShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = -32;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ台座-1"{
			AttachCoord = (0.0, 0.3, 0.5);
		}
	}
	Object3D "パンタ下-1-1-透明"{
		ModelFileName = "ps105_2-1_.x";
		NoReceiveShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		If !"_SHADOW" {
			ChangeModel = "", 0.0;
		}
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = -32;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ台座-1"{
			AttachCoord = (0.0, 0.3, 0.5);
		}
	}
	Object3D "パンタ下-1-2"{
		ModelFileName = "ps105_2-2.x";
		AlphaZeroTest = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		NoCastShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = 32;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ台座-1"{
			AttachCoord = (0.0, 0.3, -0.5);
		}
	}
	Object3D "パンタ下-1-2-透明"{
		ModelFileName = "ps105_2-2_.x";
		NoReceiveShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		If !"_SHADOW" {
			ChangeModel = "", 0.0;
		}
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = 32;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ台座-1"{
			AttachCoord = (0.0, 0.3, -0.5);
		}
	}
	Object3D "パンタ上-1-1"{
		ModelFileName = "ps105_3-1.x";
		AlphaZeroTest = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		NoCastShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = 60.0;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ下-1-1"{
			AttachCoord = (0.0, 0.02, 0.8);
		}
	}
	Object3D "パンタ上-1-1-透明"{
		ModelFileName = "ps105_3-1_.x";
		NoReceiveShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		If !"_SHADOW" {
			ChangeModel = "", 0.0;
		}		
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = 60.0;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ下-1-1"{
			AttachCoord = (0.0, 0.02, 0.8);
		}
	}
	Object3D "パンタ上-1-2"{
		ModelFileName = "ps105_3-2.x";
		AlphaZeroTest = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		NoCastShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = -60.0;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ下-1-2"{
			AttachCoord = (0.0, 0.02, -0.8);
		}
	}
	Object3D "パンタ上-1-2-透明"{
		ModelFileName = "ps105_3-2_.x";
		NoReceiveShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		If !"_SHADOW" {
			ChangeModel = "", 0.0;
		}
		If "電源(パンタグラフ)" {
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = -60.0;
				AnimationTime = 0.8;
				ReverseTime = 1.2;
			}
		}
		
		Joint3D "パンタ下-1-2"{
			AttachCoord = (0.0, 0.02, -0.8);
		}
	}
	Object3D "パンタすり-1"{
		ModelFileName = "ps105_4.x";
		AlphaZeroTest = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		NoCastShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		Joint3D "パンタ上-1-1"{
			AttachCoord = (0.0, 0.0, -1.2);
			LocalCoord = (0.0, 0.0, 0.1);
			DirLink = "パンタ台座-1";
			UpLink = "パンタ台座-1";
		}
	}
	Object3D "パンタすり-1-透明"{
		ModelFileName = "ps105_4_.x";
		NoReceiveShadow = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11;
		If !"_SHADOW" {
			ChangeModel = "", 0.0;
		}
		Joint3D "パンタ上-1-1"{
			AttachCoord = (0.0, 0.0, -1.2);
			LocalCoord = (0.0, 0.0, 0.1);
			DirLink = "パンタ台座-1";
			UpLink = "パンタ台座-1";
		}
	}
}
