<root>
    <initData>
        <uniqueID>School Bus</uniqueID>
        <data>
            <gmfFilename>resources/models/vehicles/schoolBus/schoolbus.xml</gmfFilename>
            <mass>6.0</mass>
	    <materialLookup>
       		<materialID>Steel</materialID>
        	<prim>PRIM_RoofLeft</prim>
		<prim>PRIM_RoofRight</prim>
		<prim>PRIM_SidesFront</prim>
      	    </materialLookup>
	    <materialLookup>
       		<materialID>SteelAndGlass</materialID>
        	<prim>PRIM_Sides</prim>
		<prim>PRIM_Windshield</prim>
		<prim>PRIM_Front</prim>
		<prim>PRIM_Rear</prim>
      	    </materialLookup>

            <materialLookup>
          	<materialID>Launch</materialID>
          	<prim>PRIM_LaunchBox</prim>
      	    </materialLookup>

            <decal>
            	<vertBox>PRIM_VERTBOX_Roof</vertBox>
            	<texture>Resources/FX/Decals/Scrape.tga</texture>
            	<threshold>100.0</threshold>
            	<trigger>PRIM_TRIGGER_Roof</trigger>
            </decal>

            <decal>
            	<vertBox>PRIM_VERTBOX_RightSide</vertBox>
            	<texture>Resources/FX/Decals/Scrape.tga</texture>
            	<threshold>100.0</threshold>
            	<trigger>PRIM_TRIGGER_RightSide</trigger>
            </decal>

            <decal>
            	<vertBox>PRIM_VERTBOX_LeftSide</vertBox>
            	<texture>Resources/FX/Decals/Scrape.tga</texture>
            	<threshold>100.0</threshold>
            	<trigger>PRIM_TRIGGER_LeftSide</trigger>
            </decal>

            <joint>
               <name>FrontWheelR</name>
               <jointClass>giHinge2Joint</jointClass>
               <jointInitID>Hinge2</jointInitID>
               <childClass>smWheel</childClass>
               <childInitID>SchoolBusWheel</childInitID>
               <parentBone>Bone_wheelBR</parentBone>
               <childBone>Bone_wheelBR</childBone>
            </joint>
            
            <joint>
               <name>FrontWheelL</name>
               <jointClass>giHinge2Joint</jointClass>
               <jointInitID>Hinge2</jointInitID>
               <childClass>smWheel</childClass>
               <childInitID>SchoolBusWheel</childInitID>
               <parentBone>Bone_wheelBL</parentBone>
               <childBone>Bone_wheelBR</childBone>
            </joint>

            <joint>
               <name>BackWheelR</name>
               <jointClass>giHinge2Joint</jointClass>
               <jointInitID>Hinge2</jointInitID>
               <childClass>smWheel</childClass>
               <childInitID>SchoolBusWheel</childInitID>
               <parentBone>Bone_wheelFR</parentBone>
               <childBone>Bone_wheelBR</childBone>
               <lowStop>0</lowStop>
               <highStop>0</highStop>
            </joint>

            <joint>
               <name>BackWheelL</name>
               <jointClass>giHinge2Joint</jointClass>
               <jointInitID>Hinge2</jointInitID>
               <childClass>smWheel</childClass>
               <childInitID>SchoolBusWheel</childInitID>
               <parentBone>Bone_wheelFL</parentBone>
               <childBone>Bone_wheelBR</childBone>
               <lowStop>0</lowStop>
               <highStop>0</highStop>
            </joint>

            <steering>
                <joint>FrontWheelL</joint>
                <direction>1</direction>
            </steering>
            <steering>
                <joint>FrontWheelR</joint>
                <direction>1</direction>
            </steering>

            <power>
                <joint>BackWheelL</joint>
                <direction>1</direction>
            </power>
            <power>
                <joint>BackWheelR</joint>
                <direction>1</direction>
            </power>

            <wheelEmitterBone>
                <wheelName>FrontWheelL</wheelName>
                <boneName>EmitBoneFL</boneName>
            </wheelEmitterBone>

            <wheelEmitterBone>
                <wheelName>FrontWheelR</wheelName>
                <boneName>EmitBoneFR</boneName>
            </wheelEmitterBone>

            <wheelEmitterBone>
                <wheelName>BackWheelL</wheelName>
                <boneName>EmitBoneBL</boneName>
            </wheelEmitterBone>

            <wheelEmitterBone>
                <wheelName>BackWheelR</wheelName>
                <boneName>EmitBoneBR</boneName>
            </wheelEmitterBone>

            <exhaustEmitter>
	        <emitterInitID>ExhaustSmokeEmitter</emitterInitID>
        	<bone>EMIT_Exhaust_L</bone>
                <bone>EMIT_Exhaust_R</bone>
            </exhaustEmitter>

	    <damageEmitter>
	        <emitterInitID>EngineSmokeEmitter</emitterInitID>
        	<bone>EMIT_Hood_L</bone>
                <bone>EMIT_Hood_R</bone>
                <bone>EMIT_Hood_F</bone>
            </damageEmitter>

	    <damageThreshold>40.0</damageThreshold>
	    <startSound>Resources/Sounds/Vehicle/Mini School Bus/start.wav</startSound>
	    <stopSound>Resources/Sounds/Vehicle/Mini School Bus/stop.wav</stopSound>
	    <loopSound>Resources/Sounds/Vehicle/Mini School Bus/loop.wav</loopSound>
        </data>
    </initData>

    <initData>
        <uniqueID>SchoolBusWheel</uniqueID>
        <data>
            <mass>0.15</mass>
	    <name>SchoolBusWheel</name>
            <visible>1</visible>
            <gmfFilename>resources/models/vehicles/schoolbus/wheel.xml</gmfFilename>
            <snapToTerrain>0</snapToTerrain>
            <wheelMaterial>Tire</wheelMaterial>
        </data>
    </initData>
</root>