
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "神戸新交通1000型 先頭車";
	PluginAuthor = "n";
	Description = "六甲ライナー";
}

TrainInfo{
	FrontLimit = 4.0;
	TailLimit = -4.0;
	MaxVelocity = 62.5;
	MaxAcceleration = 3.5;
	MaxDeceleration = 3.5;
	DoorClosingTime = 3.0;
}
DefineSwitch "車両"{
	Entry = "1100";
	Entry = "1600(反転)";
}
DefineSwitch "編成"{
GroupCommon = "KNT1000編成";
	Entry = "1101";
	Entry = "1102";
	Entry = "1103";
	Entry = "1104";
	Entry = "1105";
	Entry = "1106";
	Entry = "1107";
	Entry = "1108";
	Entry = "1109";
	Entry = "1110";
	Entry = "1111";
}
DefineSwitch "ライト"{
	Entry = "入";
	Entry = "切";
}
DefineSwitch "室内灯"{
GroupCommon = "KNT1000室内灯";
	Entry = "入";
	Entry = "切";
}
PrimaryAssembly{
	Axle "FrontDummyWheel"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1.0;
		Symmetric = 12;
		Coord = (2.45, 0.45);
	}
	Axle "TailDummyWheel"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1.0;
		Symmetric = 12;
		Coord = (-2.45, 0.45);
	}
	//	ボディー
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "FrontDummyWheel"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (2.45, 0.45);
		}
		JointZY "TailDummyWheel"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-2.45, 0.45);
		}
	}
	//	前輪 (右)
	Object3D "FrontRightWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (0.8, 0.45, 2.45);
			DirLink = "FrontDummyWheel";
			AttachDir = (5.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	//	前輪 (左)
	Object3D "FrontLeftWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (-0.8, 0.45, 2.45);
			DirLink = "FrontDummyWheel";
			AttachDir = (-1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	//	後輪 (右)
	Object3D "TailRightWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (0.8, 0.45, -2.45);
			DirLink = "Dummy";
			AttachDir = (1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	//	後輪 (左)
	Object3D "TailLeftWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (-0.8, 0.45, -2.45);
			DirLink = "Dummy";
			AttachDir = (-1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "Doorll.x";
		Transparent = 0;
		If !"室内灯"{
			ChangeMaterial{
				MaterialID = 3;
				Emissive = 0.5, 0.5, 0.5; 
			}
　　　　　　　　}
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "Doorlr.x";
		Transparent = 0;
		If !"室内灯"{
			ChangeMaterial{
				MaterialID = 3;
				Emissive = 0.5, 0.5, 0.5; 
			}
　　　　　　　　}
		If "_DOOR1"{
				StaticMove{
				Displacement = (0.0, 0.0, -0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Doorrl.x";
		Transparent = 0;
		If !"室内灯"{
			ChangeMaterial{
				MaterialID = 3;
				Emissive = 0.5, 0.5, 0.5; 
			}
　　　　　　　　}
		If "_DOOR2"{
				StaticMove{
				Displacement = (0.0, 0.0, 0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "Doorrr.x";
		Transparent = 0;
		If !"室内灯"{
			ChangeMaterial{
				MaterialID = 3;
				Emissive = 0.5, 0.5, 0.5; 
			}
　　　　　　　　}
		If "_DOOR2"{
				StaticMove{
				Displacement = (0.0, 0.0, -0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "inbody"{
		ModelFileName = "inBody.x";
		If !"室内灯"{
			ChangeMaterial{
				MaterialID = 0,1,2,3;
				Emissive = 0.5, 0.5, 0.5; 
			}
　　　　　　　　}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Mainbody"{
		ModelFileName = "Body.x";
		NoCastShadow = 5;
		ApplySwitch "車両"{
		Case 0:
			ApplySwitch "編成"{
			Case 0:ChangeTexture = 5, "tex/車番/1101.png";
			Case 1:ChangeTexture = 5, "tex/車番/1102.png";
			Case 2:ChangeTexture = 5, "tex/車番/1103.png";
			Case 3:ChangeTexture = 5, "tex/車番/1104.png";
			Case 4:ChangeTexture = 5, "tex/車番/1105.png";
			Case 5:ChangeTexture = 5, "tex/車番/1106.png";
			Case 6:ChangeTexture = 5, "tex/車番/1107.png";
			Case 7:ChangeTexture = 5, "tex/車番/1108.png";
			Case 8:ChangeTexture = 5, "tex/車番/1109.png";
			Case 9:ChangeTexture = 5, "tex/車番/1110.png";
			Case 10:ChangeTexture = 5, "tex/車番/1111.png";
		}
		Case 1:
			ApplySwitch "編成"{
			Case 0:ChangeTexture = 5, "tex/車番/1601.png";
			Case 1:ChangeTexture = 5, "tex/車番/1602.png";
			Case 2:ChangeTexture = 5, "tex/車番/1603.png";
			Case 3:ChangeTexture = 5, "tex/車番/1604.png";
			Case 4:ChangeTexture = 5, "tex/車番/1605.png";
			Case 5:ChangeTexture = 5, "tex/車番/1606.png";
			Case 6:ChangeTexture = 5, "tex/車番/1607.png";
			Case 7:ChangeTexture = 5, "tex/車番/1608.png";
			Case 8:ChangeTexture = 5, "tex/車番/1609.png";
			Case 9:ChangeTexture = 5, "tex/車番/1610.png";
			Case 10:ChangeTexture = 5, "tex/車番/1611.png";
			}
		}
If "ライト"==0 &&(!"_FRONT")&&(!"_CONNECT1"){
		ChangeAlpha = 1, 1.0;
		ChangeAlpha = 2, 0.0;
}
If "ライト" ==0 && ("_FRONT")&&(!"_CONNECT1"){	
		ChangeAlpha = 1, 0.0;
		ChangeAlpha = 2, 1.0;
}
If "ライト" ==1 {	
		ChangeAlpha = 1, 0.0;
		ChangeAlpha = 2, 0.0;
}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "horo"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "車両"{
		Case 0:ChangeModel = "horo.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	FrontCabin{
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
}
