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

PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Struct;
	PluginName = "風力発電所";
	PluginAuthor = "おかづ";
	IconTexture = "..\..\Train\Aizentranza01\Icon.png";
	Description = "風向きに応じてプロペラの方向を自動的に調整します。";
}

StructInfo{
}

DefineSwitch "風向追跡"{
	Entry = "あり";
	Entry = "なし";
}

PrimaryAssembly{
	Object3D "Tower"{
		ModelFileName = "Tower.x";
		ModelScale = 1.0;
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Generator"{
		ModelFileName = "Generator.x";
		ModelScale = 1.0;
		ApplySwitch "風向追跡"{
		Case 0:
			TrackWind{
				TrackSpeed = -0.4;
				FixAxis = (0.0, 1.0, 0.0);
			}
		}
		Joint3D "Tower"{
			AttachCoord = (0.0, 44.0, 0.0);
		}
	}
	Object3D "Blade"{
		ModelFileName = "Blade.x";
		ModelScale = 1.0;
		Windmill{
			Directional = yes;
			RotationAxis = (0.0, 0.0, 1.0);
			RotationSpeed = -0.1;	//	[rps/(m/s)]
			Symmetric = 3;
		}
		Joint3D "Generator"{
			AttachCoord = (0.0, 0.0, 1.0);
		}
	}
}
