
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "[遊具]5インチゲージ ミニ列車 通勤電車（自由形）";
	PluginAuthor = "n";
	IconTexture = "..\..\Train\n_5inch-gauge_Lead-Car_1\tex\icon.png";
	Description = "";
}

TrainInfo{
	FrontLimit = 1.0;
	TailLimit = -1.0;
	MaxVelocity = 5.0;
	MaxAcceleration = 1.0;
	MaxDeceleration = 1.0;
	DoorClosingTime = 0.0;
}
DefineSwitch "車種"{
	Entry = "00-通勤電車1-1";
	Entry = "01-通勤電車1-2";
	Entry = "02-通勤電車1-3";
	Entry = "03-ユーザー定義";
	Entry = "04-ユーザー定義";
	Entry = "05-ユーザー定義";
	Entry = "06-ユーザー定義";
	Entry = "07-ユーザー定義";
	Entry = "08-ユーザー定義";
	Entry = "09-ユーザー定義";
}


PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0;
		Diameter = 0.08;
		Symmetric = 16;
		Coord = (0.85,0.04);
	}
	Axle "wheel2"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0;
		Diameter = 0.08;
		Symmetric = 16;
		Coord = (0.65,0.04);
	}
	Axle "wheel3"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0;
		Diameter = 0.08;
		Symmetric = 16;
		Coord = (-0.85,0.04);
	}
	Axle "wheel4"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0;
		Diameter = 0.08;
		Symmetric = 16;
		Coord = (-0.65,0.04);
	}
	Body "Bogie1"{
		ModelFileName = "bogie.x";
		ModelScale = 1.0;
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (0.15,0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-0.15,0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "bogie.x";
		ModelScale = 1.0;
		Turn = yes;
		JointZY "wheel3"{
			AttachCoord = (0,0);
			LocalCoord = (0.15,0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-0.15,0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (0.75, 0.05);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-0.75, 0.05);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "車種"{
		Case 0:
			ChangeModel = "body_0.x", 1.0;
		Case 1:
			ChangeModel = "body_0.x", 1.0;
			ChangeTexture = 0, "Tex/tex1.png";
			ChangeTexture = 1, "Tex/tex1.png";
			ChangeTexture = 2, "Tex/tex1.png";
		Case 2:
			ChangeModel = "body_0.x", 1.0;
			ChangeTexture = 0, "Tex/tex2.png";
			ChangeTexture = 1, "Tex/tex2.png";
			ChangeTexture = 2, "Tex/tex2.png";
　　　　　　　　}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

