PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "kBS 1000` (Ԏ)";
	PluginAuthor = "mitsubachi";
	IconTexture = "../common_mtbc/icon.png";
	Description = "";
}

TrainInfo{
	FrontLimit = 7.3;
	TailLimit = -7.3;
	MaxVelocity = 65.0;	//݌vōx 80km/h?
	MaxAcceleration = 3.5;
	MaxDeceleration = 4.0;
	DoorClosingTime = 3.4;
}

DefineSwitch "Ґ"{
GroupCommon = "mtbc_kitakyushu-monorail1000_Ґ";
	Entry = "1Ґ ()";
	Entry = "2Ґ ()";
	Entry = "3Ґ (/ˋ)";
	Entry = "4Ґ ()";
	Entry = "5Ґ ()";
	Entry = "6Ґ ()";
	Entry = "7Ґ ()";
	Entry = "8Ґ ()";
	Entry = "9Ґ ()";
}

DefineSwitch "ԓƖ"{
GroupCommon = "mtbc_kitakyushu-monorail1000_ԓƖ";
	Entry = "";
	Entry = "";
}

DefineSwitch "hA"{
GroupCommon = "mtbc_kitakyushu-monorail1000_hA";
	Entry = "";
	Entry = "";
}

PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.5;
		Symmetric = 16;
		Coord = (4.8, 0.5);
	}
	Axle "wheel2"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.3;
		Symmetric = 16;
		Coord = (-4.8, 0.5);
	}
	Axle "bogie2_ff_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (5.8, 0.0);
	}
	Axle "bogie2_fr_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (3.8, 0.0);
	}
	Axle "bogie2_rf_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (-3.8, 0.0);
	}
	Axle "bogie2_rr_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (-5.8, 0.0);
	}
	Body "body"{
		ModelFileName = "";
		ModelScale = 10.0;
		JointZY "wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (4.8, 0.5);
		}
		JointZY "wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-4.8, 0.5);
		}
	}
	Object3D "wheellf"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (-0.775, -1.0, 4.8);
		}
	}
	Object3D "wheellr"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (-0.775, -1.0, -4.8);
		}
	}
	Object3D "wheelrf"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (0.775, -1.0, 4.8);
		}
	}
	Object3D "wheelrr"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (0.775, -1.0, -4.8);
		}
	}
	Object3D "door_ll"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/door_l.x";
		ModelScale = 10.0;
		If "_DOOR1"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, 0.53);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior2b.png";
		Case 5: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "door_lr"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/door_r.x";
		ModelScale = 10.0;
		If "_DOOR1"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, -0.53);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior2b.png";
		Case 5: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "door_rl"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/door_r.x";
		ModelScale = 10.0;
		If "_DOOR2"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, -0.53);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior2b.png";
		Case 5: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "door_rr"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/door_l.x";
		ModelScale = 10.0;
		If "_DOOR2"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, 0.53);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior2b.png";
		Case 5: ChangeTexture = 0, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "bogie"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/bogie.x";
		ModelScale = 10.0;
		Transparent = 6;
		If "ԓƖ"==0{
			ChangeAlpha = 5, NightAlpha;
		}Else{
			ChangeAlpha = 5, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0:
			ShiftTexture = 1, 0.00098, -0.39063;
			ShiftTexture = 2, 0.00098, -0.39063;
			ShiftTexture = 3, 0.54492, -0.50195;
			ShiftTexture = 4, 0.00098, -0.21680;
		Case 1:
			ShiftTexture = 1, 0.00098, -0.31836;
			ShiftTexture = 2, 0.00098, -0.31836;
			ShiftTexture = 3, 0.54492, -0.26367;
			ShiftTexture = 4, 0.00098, -0.09961;
		Case 2:
			ShiftTexture = 1, 0.00098, -0.24609;
			ShiftTexture = 2, 0.00098, -0.24609;
			ShiftTexture = 3, 0.54492, -0.02539;
			ShiftTexture = 4, 0.00098, 0.01758;
		Case 3:
			ShiftTexture = 1, 0.00098, -0.17383;
			ShiftTexture = 2, 0.00098, -0.17383;
			ShiftTexture = 3, 0.54492, 0.21289;
			ShiftTexture = 4, 0.00098, 0.13477;
		Case 4:
			ShiftTexture = 1, 0.00098, -0.10156;
			ShiftTexture = 2, 0.00098, -0.10156;
			ShiftTexture = 3, 0.54492, -0.50195;
			ShiftTexture = 4, 0.00098, 0.25195;
		Case 4,6,7,8: ChangeTexture = 3, "../mtbc_kitakyushu-monorail1000_1/exterior2b.png";
		Case 5:
			ChangeTexture = 1, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
			ChangeTexture = 2, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
			ChangeTexture = 3, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
			ChangeTexture = 4, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
		Case 6:
			ShiftTexture = 1, 0.00098, -0.02930;
			ShiftTexture = 2, 0.00098, -0.02930;
			ShiftTexture = 3, 0.54492, -0.26367;
			ShiftTexture = 4, 0.00098, 0.36914;
		Case 7:
			ShiftTexture = 1, 0.00098, 0.11523;
			ShiftTexture = 2, 0.00098, 0.11523;
			ShiftTexture = 3, 0.54492, 0.21289;
			ShiftTexture = 4, 0.00098, 0.60352;
		Case 8:
			ShiftTexture = 1, 0.00098, 0.04297;
			ShiftTexture = 2, 0.00098, 0.04297;
			ShiftTexture = 3, 0.54492, -0.02539;
			ShiftTexture = 4, 0.00098, 0.48633;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "body_model"{
		ModelFileName = "body.x";
		ModelScale = 10.0;
		If "ԓƖ"==0{
			ChangeAlpha = 3, NightAlpha;
		}Else{
			ChangeAlpha = 3, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0:
			ShiftTexture = 1, 0.00098, -0.21680;
			ShiftTexture = 2, 0.00098, -0.39063;
		Case 1:
			ShiftTexture = 1, 0.00098, -0.09961;
			ShiftTexture = 2, 0.00098, -0.31836;
		Case 2:
			ShiftTexture = 1, 0.00098, 0.01758;
			ShiftTexture = 2, 0.00098, -0.24609;
		Case 3:
			ShiftTexture = 1, 0.00098, 0.13477;
			ShiftTexture = 2, 0.00098, -0.17383;
		Case 4:
			ShiftTexture = 1, 0.00098, 0.25195;
			ShiftTexture = 2, 0.00098, -0.10156;
		Case 5:
			ChangeTexture = 1, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
			ChangeTexture = 2, "../mtbc_kitakyushu-monorail1000_1/exterior.png";
		Case 6:
			ShiftTexture = 1, 0.00098, 0.36914;
			ShiftTexture = 2, 0.00098, -0.02930;
		Case 7:
			ShiftTexture = 1, 0.00098, 0.60352;
			ShiftTexture = 2, 0.00098, 0.11523;
		Case 8:
			ShiftTexture = 1, 0.00098, 0.48633;
			ShiftTexture = 2, 0.00098, 0.04297;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_ff"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		Joint3D "bogie2_ff_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_fr"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		StaticRotation{ RotationAxis = (0,1,0); RotationAngle = 180; }
		Joint3D "bogie2_fr_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_rf"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		Joint3D "bogie2_rf_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_rr"{
		ModelFileName = "../mtbc_kitakyushu-monorail1000_1/bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		StaticRotation{ RotationAxis = (0,1,0); RotationAngle = 180; }
		Joint3D "bogie2_rr_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
}