/*
 *	RailSim II Train Plugin
 *	Copyright (c) 2009 インターネット停留所
 */

PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "【東武鉄道】60000系先頭車";
	PluginAuthor = "篠ノ之隼(IS学園産業デザイン部RailSim課)";
	IconTexture = "";
	Description = "";

}

TrainInfo{
	FrontLimit = 10.10;	//	前方連結位置 Z 座標
	TailLimit = -10.2;	//	後方連結位置 Z 座標
	MaxVelocity = 120.0;	//	最高速度
	MaxAcceleration = 3.0;	//	最高加速度
	MaxDeceleration = 4.0;	//	最高減速度
	TiltSpeed = 0.1;	//	振り子反応速度
	DoorClosingTime = 6.0;	//	ドア閉め所要時間
}
DefineSwitch "前照灯"{
GroupCommon = "前照灯";
	Entry = "ON";
	Entry = "ON(減光)";
	Entry = "OFF";
}
DefineSwitch "行先"{
GroupCommon = "行先";
	Entry = "表示無";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
	Entry = "団体専用";
	Entry = "船橋";
	Entry = "柏";
	Entry = "大宮";
	Entry = "岩槻";
	Entry = "春日部";
	Entry = "清水公園";
	Entry = "野田市";
	Entry = "運河";
	Entry = "六実";
	Entry = "高柳";
	Entry = "東岩槻";
	Entry = "七光台";
	Entry = "---";
	Entry = "---";
	Entry = "---";
	Entry = "---";
	Entry = "---";
}
DefineSwitch "入換表示"{
GroupCommon = "入換表示";
	Entry = "OFF";
	Entry = "ON";
}
DefineSwitch "車両"{
	Entry = "1号車";
	Entry = "6号車";
}
DefineSwitch "ドア"{
GroupCommon = "ドア";
	Entry = "自動";
	Entry = "左";
	Entry = "右";
}
DefineSwitch "サウンド"{
GroupCommon = "サウンド";
	Entry = "OFF";
	Entry = "ON";
}
DefineSwitch "簡易シャドウ"{
GroupCommon = "簡易シャドウ";
	Entry = "無";
	Entry = "有";
}
DefineSwitch "ヘッドマーク"{
GroupCommon = "ヘッドマーク";
	Entry = "無";
	Entry = "1";
	Entry = "2";
}
DefineSwitch "塗装"{
GroupCommon = "塗装";
	Entry = "デフォルト";
	Entry = "渋谷ヒカリエ号";
}

DefineAnimation "1"{
	Frame = "../common_hayabusa/hayabusa_tobuN60000_tex/LED/号車表記/Non.png", 250;
	Frame = "../common_hayabusa/hayabusa_tobuN60000_tex/LED/号車表記/1.png", 250;
}
DefineAnimation "6"{
	Frame = "../common_hayabusa/hayabusa_tobuN60000_tex/LED/号車表記/Non.png", 250;
	Frame = "../common_hayabusa/hayabusa_tobuN60000_tex/LED/号車表記/6.png", 250;
}

PrimaryAssembly{
	Axle "Wheel1"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.9;
		Symmetric = 8;
		Coord = (8.1, 0.40);
	}
	Axle "Wheel2"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.9;
		Symmetric = 8;
		Coord = (5.9, 0.40);
	}
	Axle "Wheel3"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.9;
		Symmetric = 8;
		Coord = (-5.9, 0.40);
	}
	Axle "Wheel4"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.9;
		Symmetric = 8;
		Coord = (-8.1, 0.40);
	}
	Body "Bogie1"{
		ModelFileName = "Bogie.x";
		ModelScale = 1.0;
		JointZY "Wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.0, 0.0);
		}
		JointZY "Wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.0, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "Bogie.x";
		ModelScale = 1.0;
		Turn = yes;
		JointZY "Wheel3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.0, 0.0);
		}
		JointZY "Wheel4"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.0, 0.0);
		}
	}
	Body "MainBody"{
		ModelFileName = "body.x";
		ModelScale = 1.0;
		Turn = yes;
		AlphaZeroTest = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26;
		ApplySwitch "行先"{
		Case 0:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/Non.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/Non.png";
		Case 1:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/回送.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/回送.png";
		Case 2:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/試運転.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/試運転.png";
		Case 3:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/臨時.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/臨時.png";
		Case 4:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/団体専用.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/団体専用.png";
		Case 5:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/船橋.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/船橋.png";
		Case 6:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/柏.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/柏.png";
		Case 7:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/大宮.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/大宮.png";
		Case 8:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/岩槻.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/岩槻.png";
		Case 9:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/春日部.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/春日部.png";
		Case 10:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/清水公園.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/清水公園.png";
		Case 11:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/野田市.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/野田市.png";
		Case 12:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/運河.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/運河.png";
		Case 13:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/六実.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/六実.png";
		Case 14:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/高柳.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/高柳.png";
		Case 15:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/東岩槻.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/東岩槻.png";
		Case 16:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/七光台.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/七光台.png";
		Case 17:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/亀戸曳舟.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/亀戸曳舟.png";
		Case 18:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/たびじ.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/たびじ.png";
		Case 19:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/ぜかまし.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/ぜかまし.png";
		Case 20:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/由良.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/由良.png";
		Case 21:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/側面行先/ぱんぱかぱーん.png";
			ChangeTexture = 1,"../common_hayabusa/hayabusa_tobuN60000_tex/LED/前面行先/ぱんぱかぱーん.png";
                      }
		ApplySwitch "車両"{
		Case 0:
			SetAnimation = 3, "1";
		Case 1:
			SetAnimation = 3, "6";
                      }
		ApplySwitch "塗装"{
		Case 1:
			ChangeTexture = 8,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/flont.png";
			ChangeTexture = 9,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/side_1,6.png";
			ChangeTexture = 10,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/side_1,6.png";
	}

		ApplySwitch "_NIGHT"{
			Case 1:
			ChangeTexture = 25,"../common_hayabusa/hayabusa_tobuN60000_tex/night_side_1,6.png";
		}
		ApplySwitch "前照灯"{
		Case 0:
			ApplySwitch "_CONNECT1"{
			Case 0:
				ApplySwitch "_FRONT"{
				Case 0:
				ChangeTexture = 5,"../common_hayabusa/hayabusa_tobuN60000_tex/head2.png";
                       ChangeMaterial{
                                     MaterialID = 5;
                                        Emissive = 1.00, 1.00, 1.00;
			}
			ApplySwitch "入換表示"{
				Case 1:
				ChangeTexture = 6,"../common_hayabusa/hayabusa_tobuN60000_tex/tail1.png";
                       ChangeMaterial{
                                     MaterialID = 6;
                                        Emissive = 1.00, 1.00, 1.00; 
					}
				}
				Case 1:
				ChangeTexture = 6,"../common_hayabusa/hayabusa_tobuN60000_tex/tail1.png";
                       ChangeMaterial{
                                     MaterialID = 6;
                                         Emissive = 1.00, 1.00, 1.00;
			}
		}
	}
		Case 1:
			ApplySwitch "_CONNECT1"{
			Case 0:
				ApplySwitch "_FRONT"{
				Case 0:
				ChangeTexture = 5,"../common_hayabusa/hayabusa_tobuN60000_tex/head3.png";
                       ChangeMaterial{
                                     MaterialID = 5;
                                        Emissive = 1.00, 1.00, 1.00;
			}
			ApplySwitch "入換表示"{
				Case 1:
				ChangeTexture = 6,"../common_hayabusa/hayabusa_tobuN60000_tex/tail1.png";
                       ChangeMaterial{
                                     MaterialID = 6;
                                        Emissive = 1.00, 1.00, 1.00; 
					}
				}
				Case 1:
				ChangeTexture = 6,"../common_hayabusa/hayabusa_tobuN60000_tex/tail1.png";
                       ChangeMaterial{
                                     MaterialID = 6;
                                         Emissive = 1.00, 1.00, 1.00;
}
}
}
}

		ApplySwitch "_NIGHT"{
		Case 1:
			ApplySwitch "_CONNECT1"{
			Case 0:
				ApplySwitch "_FRONT"{
				Case 1:
				ChangeTexture = 26,"../common_hayabusa/hayabusa_tobuN60000_tex/night_flont.png";
                       ChangeMaterial{
                                     MaterialID = 26;
                                         Emissive = 1.00, 1.00, 1.00; 
}
}
}
}
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (-7.5, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (7.5, 1.0);
		}
	}
	Object3D "shadow"{
		ModelFileName = "shadow.x";
		ModelScale = 1.0;
		Turn = yes;
		ApplySwitch "簡易シャドウ"{
		Case 0:
　　　　　　　　　　　　ChangeModel = "",1.0;
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			}
		}
	Object3D "stk"{
		ModelFileName = "";
		ModelScale = 1.0;
		Turn = yes;
		ApplySwitch "ヘッドマーク"{
		Case 0:
　　　　　　　　　　　　ChangeModel = "",1.0;
		Case 1:
　　　　　　　　　　　　ChangeModel = "stk.x",1.0;
		Case 2:
　　　　　　　　　　　　ChangeModel = "stk.x",1.0;
			}
		ApplySwitch "ヘッドマーク"{
		Case 1:
			ChangeTexture = 0,"../common_hayabusa/hayabusa_tobuN60000_tex/stk1.png";
		Case 2:
			ChangeTexture = 0,"../common_hayabusa/hayabusa_tobuN60000_tex/stk2.png";
                      }
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			}
		}
	Object3D "DoorL"{
		ModelFileName = "doorl-l.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1,2;
		ApplySwitch "塗装"{
		Case 1:
			ChangeTexture = 0,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/side_1,6.png";
		      }

		ApplySwitch "_NIGHT"{
			Case 1:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/night_side_1,6.png";
		}
		If("_DOOR1" && "ドア"==0) || ("車両"==0 && "ドア"==1) || ("車両"==1 && "ドア"==2){
			StaticMove{
				Displacement = ( 0.0, 0.0, 0.61);
				PreAnimationDelay = 0.5;
				AnimationTime = 2.0;
				ReverseTime = 2.4;
			}
			StaticMove{
				Displacement = ( 0.0, 0.0, 0.06);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.6;
				PreReverseDelay = 2.9;
				ReverseTime = 0.6;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "DoorL2"{
		ModelFileName = "doorl-r.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1,2;
		ApplySwitch "塗装"{
		Case 1:
			ChangeTexture = 0,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/side_1,6.png";
		      }

		ApplySwitch "_NIGHT"{
			Case 1:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/night_side_1,6.png";
		}
		If("_DOOR1" && "ドア"==0) || ("車両"==0 && "ドア"==1) || ("車両"==1 && "ドア"==2){
			StaticMove{
				Displacement = ( 0.0, 0.0, -0.61);
				PreAnimationDelay = 0.5;
				AnimationTime = 2.0;
				ReverseTime = 2.4;
			}
			StaticMove{
				Displacement = ( 0.0, 0.0, -0.06);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.6;
				PreReverseDelay = 2.9;
				ReverseTime = 0.6;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	
	Object3D "DoorR"{
		ModelFileName = "doorr-l.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1,2;
		ApplySwitch "塗装"{
		Case 1:
			ChangeTexture = 0,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/side_1,6_1.png";
		      }

		ApplySwitch "_NIGHT"{
			Case 1:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/night_side_1,6.png";
		}
		If("_DOOR2" && "ドア"==0) || ("車両"==0 && "ドア"==2) || ("車両"==1 && "ドア"==1){
			StaticMove{
				Displacement = ( 0.0, 0.0, 0.61);
				PreAnimationDelay = 0.5;
				AnimationTime = 2.0;
				ReverseTime = 2.4;
			}
			StaticMove{
				Displacement = ( 0.0, 0.0, 0.06);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.6;
				PreReverseDelay = 2.9;
				ReverseTime = 0.6;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "DoorR2"{
		ModelFileName = "doorr-r.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1,2;
		ApplySwitch "塗装"{
		Case 1:
			ChangeTexture = 0,"../common_hayabusa/hayabusa_tobuN60000_tex/Hikarie/side_1,6_1.png";
		      }

		ApplySwitch "_NIGHT"{
			Case 1:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_tobuN60000_tex/night_side_1,6.png";
		}
		If("_DOOR2" && "ドア"==0) || ("車両"==0 && "ドア"==2) || ("車両"==1 && "ドア"==1){
			StaticMove{
				Displacement = ( 0.0, 0.0, -0.61);
				PreAnimationDelay = 0.5;
				AnimationTime = 2.0;
				ReverseTime = 2.4;
			}
			StaticMove{
				Displacement = ( 0.0, 0.0, -0.06);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.6;
				PreReverseDelay = 2.9;
				ReverseTime = 0.6;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "doorlampL"{
		ModelFileName = "ドアランプ.x";
		ModelScale = 1.0;
		If("_DOOR1" && "ドア"==0) || ("車両"==0 && "ドア"==1) || ("車両"==1 && "ドア"==2){
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 0.5;
				PreReverseDelay = 2.7;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 0.75;
				PreReverseDelay = 2.5;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.0;
				PreReverseDelay = 2.25;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.25;
				PreReverseDelay = 2.0;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.5;
				PreReverseDelay = 1.75;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.75;
				PreReverseDelay = 1.5;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.0;
				PreReverseDelay = 1.25;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.25;
				PreReverseDelay = 1.0;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.5;
				PreReverseDelay = 0.75;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.75;
				PreReverseDelay = 0.5;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (1.31, 2.9737, 0.0);
		}
	}

	Object3D "doorlampR"{
		ModelFileName = "ドアランプ.x";
		ModelScale = 1.0;
		If("_DOOR2" && "ドア"==0) || ("車両"==0 && "ドア"==2) || ("車両"==1 && "ドア"==1){
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 0.5;
				PreReverseDelay = 2.7;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 0.75;
				PreReverseDelay = 2.5;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.0;
				PreReverseDelay = 2.25;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.25;
				PreReverseDelay = 2.0;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.5;
				PreReverseDelay = 1.75;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 1.75;
				PreReverseDelay = 1.5;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.0;
				PreReverseDelay = 1.25;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.25;
				PreReverseDelay = 1.0;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.5;
				PreReverseDelay = 0.75;
			}
			StaticRotation{
				RotationAxis = (0.0, 0.0, 1.0);
				RotationAngle = -180;
				PreAnimationDelay = 2.75;
				PreReverseDelay = 0.5;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.31, 2.9737, 0.0);
		}
	}

//	照明スイッチ
	ApplySwitch "前照灯"{
	Case 0:
		//	前方に車輌が接続されていないときのみ点灯
		ApplySwitch "_CONNECT1"{
		Case 0:
			//	進行方向を判定
			ApplySwitch "_FRONT"{
			Case 0:

//	ヘッドライト
				Headlight{
					AttachObject = "MainBody";
					SourceCoord = (0.86, 1.32, -9.95);
					Direction = (0.0, 0.0, -1.0);
					MaxDistance = 5.0;
					LensFlare{
						StartAngle = 50.0;
						Twinkle = 0.1;
						Texture{
							Distance = 0.0;
							Radius = 0.4;
							TexFileName = "../common_hayabusa/hayabusa_tobuN60000_tex/Flare.png";
						}
					}
				}
				Headlight{
					AttachObject = "MainBody";
					SourceCoord = (-0.86, 1.32, -9.95);
					Direction = (0.0, 0.0, -1.0);
					MaxDistance = 5.0;
				}

			Case 1:
		}
	}
	Case 1:
		//	前方に車輌が接続されていないときのみ点灯
		ApplySwitch "_CONNECT1"{
		Case 0:
			//	進行方向を判定
			ApplySwitch "_FRONT"{
			Case 0:

//	ヘッドライト
				Headlight{
				AttachObject = "MainBody";
					SourceCoord = (0.86, 1.31, -9.95);
					Direction = (0.0, 0.0, -1.0);
					MaxDistance = 5.0;
					LensFlare{
						StartAngle = 50.0;
						Twinkle = 0.1;
						Texture{
							Distance = 0.0;
							Radius = 0.4;
							TexFileName = "../common_hayabusa/hayabusa_tobuN60000_tex/Flare2.png";
						}
					}
				}
				Headlight{
					AttachObject = "MainBody";
					SourceCoord = (-0.86, 1.31, -9.95);
					Direction = (0.0, 0.0, -1.0);
					MaxDistance = 5.0;
				}

			Case 1:
		}
	}
}
//サウンドエフェクト
	
//ドア
If ("サウンド"==1 && "ドア"==0) || ("サウンド"==1 && "ドア"==1) || ("サウンド"==1 && "ドア"==2){
	ApplySwitch "_DOOR1"|"_DOOR2"{
	Case 0:
	If 0=="_VELOCITY"{
		SoundEffect{
		WaveFileName = "../common_hayabusa/hayabusa_tobuN60000_tex/sound/doorcls.wav";
		AttachObject = "MainBody";
		SourceCoord = (0.0, 3.0 ,0.0);
		Loop = no;
		}
	}
	Case 1:
		SoundEffect{
		WaveFileName = "../common_hayabusa/hayabusa_tobuN60000_tex/sound/dooropn.wav";
		AttachObject = "MainBody";
		SourceCoord = (0.0, 3.0 ,0.0);
		Loop = no;
		}
	}
}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.3, 2.9, -9.50);
			DirLink = "Bogie1";
		}
	}
}
