/*------------------------------------------------------*
 *	RailSim II Plugin				*
 *	Copyright (c) 2010 DegitalEarth    		*
 *	URL:http://www.usamimi.info/~wataw/		*
 *							*
 *	憃摢楢寢婍  Ver1.0				*
 *							*
 *	SS嶣塭:仢 SS岞奐:仢 嵞攝晍:仜 夵憿:仜		* 
 *	夵憿昳偺岞奐:仜					*
 *------------------------------------------------------*/

PluginHeader{
	RailSimVersion = 2.12;
	PluginType = Train;
	PluginName = "憃摢楢寢婍";
	PluginAuthor = "NyahoTaro";
	IconTexture = "icon.png";
	Description = "奼戝棪0.1";
}

TrainInfo{
	FrontLimit = 0.0;
	TailLimit = 0.0;
	MaxVelocity = 0.0;
	MaxAcceleration = 0.0;
	MaxDeceleration = 0.0;
}

DefineSwitch "楢寢婍"{
	Entry = "帺";
	Entry = "枾";
}

DefineSwitch "搤僄僼僃僋僩"{
	Entry = "OFF";
	Entry = "ON";
}

PrimaryAssembly{
	Axle "Wheel_F1"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (8.350, 0.43);
	}
	Axle "Wheel_F2"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (5.350, 0.43);
	}
	Axle "Wheel_R1"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.350, 0.43);
	}
	Axle "Wheel_R2"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-8.350, 0.43);
	}
	Body "Bogie1"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Wheel_F1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.5, 0.0);
		}
		JointZY "Wheel_F2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.5, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Wheel_R1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.5, 0.0);
		}
		JointZY "Wheel_R2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.5, 0.0);
		}
	}
	Body "MainBody"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (3.5, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (-3.5, 1.0);
		}
	}
	Object3D "Coupler_F"{
		ModelFileName = "Coupler2.x";
		ModelScale = 1.0;
		ApplySwitch "搤僄僼僃僋僩"{
		Case 1:
			ChangeTexture = 0, "Coupler_snow.png";
		}

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Coupler_F_main"{
		ModelFileName = "Coupler.x";
		ModelScale = 1.0;
		ApplySwitch "搤僄僼僃僋僩"{
		Case 1:
			ChangeTexture = 0, "Coupler_snow.png";
			ChangeTexture = 1, "tlc_snow.png";
		}
		ApplySwitch "楢寢婍"{
		Case 1:
			StaticRotation{	RotationAxis = (0.0, 1.0, 0.0);	RotationAngle = 85.0;	AnimationTime = 2.0;	}
		}
		Joint3D "Coupler_F"{
			AttachCoord = (0.0, 0.0, 0.0);
			LocalCoord = (0.0, 0.0, 2.2);//奼戝棪0.1偺応崌=>0.22
		}
	}




}
