//惢嶌丂揷娧惢嶌強丂仐丂偲傕丂

//僾儔僌僀儞僿僢僟--------------------------------------------------
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "揷娧惢嶌強斈梡婥摦幵GPDC";
	PluginAuthor = "偲傕";
	IconTexture = "..\common_rpt\common\tn_rogo.PNG";
	Description = "偠乕傄乕偱偂乕偟乕";
}
//僾儔僌僀儞僿僢僟廔
//僾儔僌僀儞忣曬--------------------------------------------------
TrainInfo{
	FrontLimit = 9.0;	//	慜曽楢寢埵抲 Z 嵗昗
	TailLimit = -9.0;	//	屻曽楢寢埵抲 Z 嵗昗
	MaxVelocity = 110.0;	//	嵟崅懍搙
	MaxAcceleration = 2.0;	//	嵟崅壛懍搙
	MaxDeceleration = 3.5;	//	嵟崅尭懍搙
	DoorClosingTime = 4.0;	//	僪傾暵傔強梫帪娫
}
//僾儔僌僀儞忣曬廔
//僗僀僢僠孮--------------------------------------------------
DefineSwitch "----------幵椉愝掕"{Entry = "";}//------------------------------------
DefineSwitch "峴愭"{
	GroupCommon = "峴愭";
	Entry = "崟枊";
	Entry = "戄愗";
	Entry = "帋塣揮";
}
DefineSwitch "庬暿"{
	GroupCommon = "庬暿";
	Entry = "崟枊";
	Entry = "夞憲";
	Entry = "晛捠";
	Entry = "奺掆";
	Entry = "夣懍";
	Entry = "摿夣";
	Entry = "媫峴";
	Entry = "摿媫";
}
DefineSwitch "揾憰"{
	Entry = "偡乕傁乕僇價僇價偰傫偨偔傞崋";
	Entry = "偍偨偺偟傒偵両";
	Entry = "偍偨偺偟傒偵両";
	Entry = "偍偨偺偟傒偵両";
}
DefineSwitch "徠摂"{
	GroupCommon = "徠摂";
	Entry = "擖";
	Entry = "愗";
}
DefineSwitch "幵撪摂"{
	GroupCommon = "幵撪摂";
	Entry = "揰摂";
	Entry = "徚摂";
}
DefineSwitch "塭"{
	GroupCommon = "塭";
	Entry = "偁傝";
	Entry = "側偟";
}
DefineSwitch "婳娫"{
	GroupCommon = "婳娫";
	Entry = "嫹婳";
	Entry = "昗弨婳";
}
DefineSwitch "梙傟"{
	Entry = "偁傝";
	Entry = "側偟";
}
DefineSwitch "----------僪傾娭楢"{Entry = "";}//------------------------------------
DefineSwitch "僪傾愝掕"{
	GroupCommon = "僪傾愝掕";
	Entry = "帺摦";
	Entry = "庤摦";
}
DefineSwitch "塃僪傾憖嶌"{
	GroupCommon = "塃僪傾";
	Entry = "暵";
	Entry = "奐";
}
DefineSwitch "嵍僪傾憖嶌"{
	GroupCommon = "嵍僪傾";
	Entry = "暵";
	Entry = "奐";
}
//僗僀僢僠孮廔
PrimaryAssembly{
//幵幉掕媊--------------------------------------------------
	Axle "Wheel1"{
		ModelFileName = "..\common_rpt\bogie\BT11A\wheel-n.x";
		ModelScale = 1.0;
		EnvMap = 1;
		ApplySwitch "婳娫"{
		Case 0:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-n.x", 1.0;
		Case 1:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-s.x", 1.0;
		}
		Diameter = 0.86;
		Symmetric = 0;
		Coord = (6.95, 0.43);
	}
	Axle "Wheel2"{
		ModelFileName = "..\common_rpt\bogie\BT11A\wheel-n.x";
		ModelScale = 1.0;
		EnvMap =1;
		ApplySwitch "婳娫"{
		Case 0:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-n.x", 1.0;
		Case 1:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-s.x", 1.0;
		}
		Diameter = 0.86;
		Symmetric = 0;
		Coord = (4.85, 0.43);

	}
	Axle "Wheel3"{
		ModelFileName = "..\common_rpt\bogie\BT11A\wheel-n.x";
		ModelScale = 1.0;
		EnvMap = 1;
		ApplySwitch "婳娫"{
		Case 0:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-n.x", 1.0;
		Case 1:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-s.x", 1.0;
		}
		Diameter = 0.86;
		Symmetric = 0;
		Coord = (-4.85, 0.43);

	}
	Axle "Wheel4"{
		ModelFileName = "..\common_rpt\bogie\BT11A\wheel-n.x";
		ModelScale = 1.0;
		EnvMap = 1;
		ApplySwitch "婳娫"{
		Case 0:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-n.x", 1.0;
		Case 1:
			ChangeModel = "..\common_rpt\bogie\BT11A\wheel-s.x", 1.0;
		}
		Diameter = 0.86;
		Symmetric = 0;
		Coord = (-6.95, 0.43);

	}
//幵幉掕媊廔
//戜幵掕媊--------------------------------------------------
	Body "Bogie1"{
		ModelFileName = "..\common_rpt\bogie\BT11A\bogie.x";
		ModelScale = 1.0;
		JointZY "Wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.05, 0.43);
		}
		JointZY "Wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.05, 0.43);
		}
	}
	Body "Bogie2"{
		ModelFileName = "..\common_rpt\bogie\BT11A\bogie.x";
		ModelScale = 1.0;
		Turn = yes;
		JointZY "Wheel3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.05, 0.43);
		}
		JointZY "Wheel4"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.05, 0.43);
		}
	}
//戜幵掕媊廔
//幵懱掕媊--------------------------------------------------
	Body "dummybody"{				//僟儈乕幵懱1
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (5.9, 0.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-5.9, 0.0);
		}
	}
//梙傟婡峔---------------------------------------------------
	Object3D "DummyCircle"{				
		ModelFileName = "";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 90;
		}
		If "梙傟" == 0 {
			If "_VELOCITY" > 0{
				DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationSpeed = 0.15;
					Acceleration = 0.1;
					Deceleration = 0.001;
				}
			}
			If "_VELOCITY" > 5{
				DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationSpeed = 0.25;
					Acceleration = 0.1;
					Deceleration = 0.1;
				}
			}
			If "_VELOCITY" > 30{
				DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationSpeed = 0.25;
					Acceleration = 0.1;
					Deceleration = 0.5;
				}
			}
			If "_VELOCITY" > 50{
				DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationSpeed = 0.15;
					Acceleration = 0.1;
					Deceleration = 0.5;
				}
			}
		}
		Joint3D "dummybody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	
	CrankZY{
		Link "Rod1"{
			ModelFileName = "rod.x";
			JointZYX "DummyCircle"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.02);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.5, 0.0);
		}
		Slide "Rod11"{
			ModelFileName = "";
			JointZYX "dummybody"{
				AttachX = 0.0;
				AttachCoord = (0.0, 1.1);
				LocalCoord = (0.0, 0.0);
			}
			Direction = (1.0, 0.0);
		}
	}
//梙傟婡峔廔---------------------------------------------------
Object3D "dummysyatai"{							//僟儈乕幵懱2
		ModelFileName = "";
		ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 0.0, 1.0);
			RotationAngle = 90;
		}
	If "_FRONT"{							//幵懱梙傟掕媊
		If  (0<"_VELOCITY"){
			If (0>"_ACCEL"){
				StaticRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationAngle = -0.4;
					AnimationTime = 3;
					ReverseTime = 1;
				}
			}
			If (0<"_ACCEL"){
				StaticRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationAngle = 0.4;
					AnimationTime = 3;
					ReverseTime = 1;
				}
			}
		}
	}
	If! "_FRONT"{
		If  (0<"_VELOCITY"){
			If (0>"_ACCEL"){
				StaticRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationAngle = 0.4;
					AnimationTime = 3;
					ReverseTime = 1;
				}
			}
			If (0<"_ACCEL"){
				StaticRotation{
					RotationAxis = (1.0, 0.0, 0.0);
					RotationAngle = -0.4;
					AnimationTime = 3;
					ReverseTime = 1;
				}
			}
		}
	}
		Joint3D "Rod1"{
			AttachCoord = (0.0, 0.0, 0.0);
			LocalCoord = (0.0, 0.0, 0.0);
			DirLink = "dummybody";
		}
	}
	Object3D "frontlight"{						//慜徠摂慜
		ModelFileName = "light-n.x";
		ModelScale = 1.0;
		NoCastShadow = 0,6,7;
//徠摂掕媊-------------------------------------------------------------
		If !"徠摂" && !"_CONNECT1"{							//徠摂掕媊
			If "_FRONT"{
				ChangeModel = "light-b.x", 1.0;
			}Else{
				ChangeModel = "light-f.x", 1.0;
			}
		}
//徠摂掕媊廔
		Joint3D "dummysyatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "backlight"{						//慜徠摂屻
		ModelFileName = "light-n.x";
		ModelScale = 1.0;
		NoCastShadow = 0,6,7;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
//徠摂掕媊-------------------------------------------------------------
		If !"徠摂" && !"_CONNECT2"{							//徠摂掕媊
			If !"_FRONT"{
				ChangeModel = "light-b.x", 1.0;
			}Else{
				ChangeModel = "light-f.x", 1.0;
			}
		}
//徠摂掕媊廔
		Joint3D "dummysyatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "houkou"{						//曽岦枊-----------------------
		ModelFileName = "back.x";
		ModelScale = 1.0;
		NoCastShadow = 0,6,7;
		ApplySwitch "幵撪摂"{
		Case 0:	
			ChangeMaterial{
					MaterialID = 1,2;
					Emissive = 255, 255, 255;
					Power = 15.0;
			}
		Case 1:	
			ChangeMaterial{
					MaterialID = 1,2;
					Emissive = 0, 0, 0;
					Power = 15.0;
			}
		}
		ApplySwitch "峴愭"{
		Case 0:
			ChangeTexture = 1, "..\common_rpt\tm_gpdc\hk\bl.png";
		Case 1:
			ChangeTexture = 1, "..\common_rpt\tm_gpdc\hk\reserve.png";
		Case 2:
			ChangeTexture = 1, "..\common_rpt\tm_gpdc\hk\testrun.png";
		Case 3:
			ChangeTexture = 1, "..\common_rpt\tm_gpdc\hk\bl.png";

		}
		ApplySwitch "庬暿"{
		Case 0:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\bl.png";
		Case 1:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\nis.png";
		Case 2:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\lc.png";
		Case 3:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\lc2.png";
		Case 4:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\rp.png";
		Case 5:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\sr.png";
		Case 6:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\ex.png";
		Case 7:
			ChangeTexture = 2, "..\common_rpt\tm_gpdc\hk\rx.png";
		}
//屗暵摂-------------------------------------------------------------
		If "_DOOR1"{
			ChangeMaterial{
				MaterialID = 21;
				Emissive = 255, 0, 0;
			}
		}
		If "_DOOR2"{
			ChangeMaterial{
				MaterialID = 22;
				Emissive = 255, 0, 0;
			}
		}
//屗暵摂廔
		Joint3D "dummysyatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "horo1"{						//杫
		ModelFileName = "";
		ModelScale = 1.0;
		If "_CONNECT1"{							//弌尰掕媊
			ChangeModel = "horo.x", 1.0;

		}
		Joint3D "dummysyatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "horo2"{						//杫
		ModelFileName = "";
		ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "_CONNECT2"{							//弌尰掕媊
			ChangeModel = "horo.x", 1.0;

		}
		Joint3D "dummysyatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "syatai"{							//幵懱
		ModelFileName = "body.x";
		ModelScale = 1.0;
		NoCastShadow = 14,16,17,18;
		Transparent = 14,16,17,18;
//僗僀僢僠-----------------------------------------------------------
		ApplySwitch "幵撪摂"{
		Case 1:	
			ChangeMaterial{
					MaterialID = 12;
					Emissive = 0, 0, 0;
					Power = 15.0;
			}
			ChangeAlpha = 16, 0.0;
			ChangeAlpha = 17, 0.0;
			ChangeAlpha = 18, 0.0;
		Default:
			ChangeAlpha = 16, NightAlpha;
			ChangeAlpha = 17, NightAlpha;
			ChangeAlpha = 18, NightAlpha;
		}
		ApplySwitch "揾憰"{
		Case 0:
			ChangeTexture = 4, "../common_rpt/tm_gpdc/tentacle/w.png";
			ChangeTexture = 5, "../common_rpt/tm_gpdc/tentacle/fr.png";
			ChangeTexture = 8, "../common_rpt/tm_gpdc/tentacle/fr-b.png";
			ChangeTexture = 9, "../common_rpt/tm_gpdc/tentacle/fr-c.png";
			ChangeTexture = 10, "../common_rpt/tm_gpdc/tentacle/si-b.png";
		}

//僗僀僢僠廔
		Joint3D "dummysyatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
//幵懱掕媊廔
//僆僽僕僃僋僩掕媊--------------------------------------------------
	Object3D "door-lb"{								//僪傾
		ModelFileName = "door.x";
		ModelScale = 1.0;
		NoCastShadow = 14,16,17,18;
		Transparent = 14,16,17,18;

		ApplySwitch "幵撪摂"{
		Case 1:	
			ChangeMaterial{
					MaterialID = 15;
					Emissive = 0, 0, 0;
					Power = 15.0;
			}
			ChangeAlpha = 16, 0.0;
			ChangeAlpha = 17, 0.0;
			ChangeAlpha = 18, 0.0;
		Default:
			ChangeAlpha = 16, NightAlpha;
			ChangeAlpha = 17, NightAlpha;
			ChangeAlpha = 18, NightAlpha;
		}
		ApplySwitch "揾憰"{
		Case 0:
			ChangeTexture = 4, "../common_rpt/tm_gpdc/tentacle/w.png";
			ChangeTexture = 5, "../common_rpt/tm_gpdc/tentacle/fr.png";
			ChangeTexture = 8, "../common_rpt/tm_gpdc/tentacle/fr-b.png";
			ChangeTexture = 9, "../common_rpt/tm_gpdc/tentacle/fr-c.png";
			ChangeTexture = 10, "../common_rpt/tm_gpdc/tentacle/si-b.png";
		}
		ApplySwitch "僪傾愝掕"{
		Case 0:
			If "_DOOR1"{
				StaticMove{
					Displacement = (0.0, 0.0, -0.2);
					PreAnimationDelay = 2.0;
					AnimationTime = 1;
					PostAnimationDelay = 2.0;
				}
				StaticMove{
					Displacement = (0.0, 0.0, -0.6);
					PreAnimationDelay = 3.0;
					AnimationTime = 1.0;
					PostAnimationDelay = 1.0;
				}
				StaticMove{
					Displacement = (0.0, 0.0, -0.2);
					PreAnimationDelay = 4.0;
					AnimationTime = 1.0;
					PostAnimationDelay = 0;
				}
			}
		Case 1:
			ApplySwitch "嵍僪傾憖嶌"{
			Case 1:
				If!"_FRONT"{
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 2.0;
						AnimationTime = 1;
						PostAnimationDelay = 2.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.6);
						PreAnimationDelay = 3.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 1.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 4.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 0;
					}
				}
			}
			ApplySwitch "塃僪傾憖嶌"{
			Case 1:
				If"_FRONT"{
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 2.0;
						AnimationTime = 1;
						PostAnimationDelay = 2.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.6);
						PreAnimationDelay = 3.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 1.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 4.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 0;
					}
				}
			}
		}
		Joint3D "syatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "door-rf"{								//僪傾
		ModelFileName = "door.x";
		ModelScale = 1.0;
		NoCastShadow = 14,16,17,18;
		Transparent = 14,16,17,18;

		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}

		ApplySwitch "幵撪摂"{
		Case 1:	
			ChangeMaterial{
					MaterialID = 15;
					Emissive = 0, 0, 0;
					Power = 15.0;
			}
			ChangeAlpha = 16, 0.0;
			ChangeAlpha = 17, 0.0;
			ChangeAlpha = 18, 0.0;
		Default:
			ChangeAlpha = 16, NightAlpha;
			ChangeAlpha = 17, NightAlpha;
			ChangeAlpha = 18, NightAlpha;
		}
		ApplySwitch "揾憰"{
		Case 0:
			ChangeTexture = 4, "../common_rpt/tm_gpdc/tentacle/w.png";
			ChangeTexture = 5, "../common_rpt/tm_gpdc/tentacle/fr.png";
			ChangeTexture = 8, "../common_rpt/tm_gpdc/tentacle/fr-b.png";
			ChangeTexture = 9, "../common_rpt/tm_gpdc/tentacle/fr-c.png";
			ChangeTexture = 10, "../common_rpt/tm_gpdc/tentacle/si-b.png";
		}
		ApplySwitch "僪傾愝掕"{
		Case 0:
			If "_DOOR2"{
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 2.0;
						AnimationTime = 1;
						PostAnimationDelay = 2.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.6);
						PreAnimationDelay = 3.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 1.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 4.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 0;
					}
			}
		Case 1:
			ApplySwitch "嵍僪傾憖嶌"{
			Case 1:
				If"_FRONT"{
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 2.0;
						AnimationTime = 1;
						PostAnimationDelay = 2.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.6);
						PreAnimationDelay = 3.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 1.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 4.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 0;
					}
				}
			}
			ApplySwitch "塃僪傾憖嶌"{
			Case 1:
				If!"_FRONT"{
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 2.0;
						AnimationTime = 1;
						PostAnimationDelay = 2.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.6);
						PreAnimationDelay = 3.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 1.0;
					}
					StaticMove{
						Displacement = (0.0, 0.0, -0.2);
						PreAnimationDelay = 4.0;
						AnimationTime = 1.0;
						PostAnimationDelay = 0;
					}
				}
			}
		}
		Joint3D "syatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "shadow"{								//塭
		ModelFileName = "shadow.x";
		ModelScale = 1.0;
		Transparent = 42.43;
		NoCastShadow = 23,24;
			ApplySwitch "塭"{
			Case 1:
				ChangeModel ="", 1.0;
			}
		Joint3D "syatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "sound"{								//僪傾壒
		ModelFileName = "";
		ModelScale = 1.0;
				StaticMove{
					Displacement = (0.0, 3000.0, 0.0);
				}
		ApplySwitch "僪傾愝掕"{
			Case 0:
			If( "_DOOR1")||("_DOOR2"){
				StaticMove{
					Displacement = (0.0, -3000.0, 0.0);
					PostAnimationDelay = 5.0;
				}
			}Else{
				StaticMove{
					Displacement = (0.0, 3000.0, 0.0);
				}
		}
			Case 1:
				StaticMove{
					Displacement = (0.0, -3000.0, 0.0);
					PostAnimationDelay = 5.0;
				}
			}
		Joint3D "syatai"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
//楢寢婍掕媊亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
	Object3D "joint1"{
		ModelFileName = "..\common_rpt\common\joint-c\joint.x";
		ModelScale = 1.0;
		Joint3D "syatai"{
			AttachCoord = (0.0, 0.0, 9.0);	//埵抲挷惍
		}
	}
	Object3D "joint2"{
		ModelFileName = "..\common_rpt\common\joint-c\joint.x";
		ModelScale = 1.0;
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
		Joint3D "syatai"{
			AttachCoord = (0.0, 0.0, -9.0);	//埵抲挷惍
		}
	}
//楢寢婍掕媊廔
//僆僽僕僃僋僩掕媊廔
//徠摂掕媊--------------------------------------------------
	If !"徠摂" && !"_CONNECT1"{
		If "_FRONT"{			
			Headlight{							//旜摂
				AttachObject = "syatai";
				SourceCoord = (-1.02, 3.23, 9.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 25.0;
					Circle{
						Distance = 0.0;
						Radius = 0.15;
						InnerColor = #ffff0000;
						OuterColor = #00000000;
					}
					Circle{
						Distance = 0.1;
						Radius = 0.4;
						InnerColor = #00000000;
						OuterColor = #20ff0000;
					}
				}
			}
			Headlight{
				AttachObject = "syatai";
				SourceCoord = (1.02, 3.23, 9.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
		}Else{
			Headlight{							//慜徠摂
				AttachObject = "syatai";
				SourceCoord = (-0.81, 3.23, 9.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 10.0;
				LensFlare{
					StartAngle = 25.0;
					Circle{
						Distance = 0.0;
						Radius = 0.3;
						InnerColor = #88ffff99;
						OuterColor = #00000000;
					}
					Circle{
						Distance = 0.05;
						Radius = 0.3;
						InnerColor = #00000000;
						OuterColor = #33ffff99;
					}
					Circle{
						Distance = 0.1;
						Radius = 0.6;
						InnerColor = #00000000;
						OuterColor = #66ffff99;
					}
					Circle{
						Distance = 0.15;
						Radius = 0.9;
						InnerColor = #00000000;
						OuterColor = #99ffff99;
					}
				}
			}
			Headlight{
				AttachObject = "syatai";
				SourceCoord = (0.81, 3.23, 9.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 10.0;
			}
		}
	}
	If !"徠摂" && !"_CONNECT2"{
		If! "_FRONT"{			
			Headlight{							//旜摂
				AttachObject = "syatai";
				SourceCoord = (-1.02, 3.23, -9.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 25.0;
					Circle{
						Distance = 0.0;
						Radius = 0.15;
						InnerColor = #ffff0000;
						OuterColor = #00000000;
					}
					Circle{
						Distance = 0.1;
						Radius = 0.4;
						InnerColor = #00000000;
						OuterColor = #20ff0000;
					}
				}
			}
			Headlight{
				AttachObject = "syatai";
				SourceCoord = (1.02,3.23,-9.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
		}Else{
			Headlight{							//慜徠摂
				AttachObject = "syatai";
				SourceCoord = (-0.81, 3.23, -9.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 10.0;
				LensFlare{
					StartAngle = 25.0;
					Circle{
						Distance = 0.0;
						Radius = 0.3;
						InnerColor = #88ffff99;
						OuterColor = #00000000;
					}
					Circle{
						Distance = 0.05;
						Radius = 0.3;
						InnerColor = #00000000;
						OuterColor = #33ffff99;
					}
					Circle{
						Distance = 0.1;
						Radius = 0.6;
						InnerColor = #00000000;
						OuterColor = #66ffff99;
					}
					Circle{
						Distance = 0.15;
						Radius = 0.9;
						InnerColor = #00000000;
						OuterColor = #99ffff99;
					}
				}
			}
			Headlight{
				AttachObject = "syatai";
				SourceCoord = (0.81, 3.23, -9.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 10.0;
			}
		}
	}
//徠摂掕媊廔
//塣揮戜帇揰掕媊--------------------------------------------------
	FrontCabin{
		Joint3D "syatai"{
			AttachCoord = (-0.68, 2.63, 7.665);
			DirLink = "Bogie1";
		}
	}
//塣揮戜帇揰掕媊廔
}
