<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="livestockTrailer">
    <annotation/>

    <storeData>
        <name>Wilson Ranch Hand</name>
        <specs>
            <combination>Truck, Dolly</combination>
        </specs>
        <functions>
            <function>$l10n_function_livestockTrailer</function>
        </functions>
        <image>store.dds</image>
        <price>15000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>WILSON</brand>
        <category>animalTransport</category>
        <shopTranslationOffset>0 0.075 0</shopTranslationOffset>
        <shopRotationOffset>-0.485 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>4414456</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>531702</indexBufferMemoryUsage>
        <textureMemoryUsage>19049496</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_livestockTrailer</typeDesc>
		<filename>WilsonRanchHand.i3d</filename>		
        <size width="3.5" length="10.5" />
		
        <components count="2">
            <component centerOfMass="0 0.7 -0.5" solverIterationCount="10" mass="300" />
            <component centerOfMass="0 0.7 -0.5" solverIterationCount="10" mass="300" />				
        </components>
		
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

	    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
				<wheels>
                    <wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.42" restLoad="0.8" repr="0>0|0"  transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="27" damper="10" frictionScale=".5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.42" restLoad="0.8" repr="0>0|1"  transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="27" damper="10" frictionScale=".5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
						<physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.42" restLoad="0.8" repr="0>0|2"  transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="27" damper="10" frictionScale=".5" mass="1" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" width="0.275" radius="0.42" restLoad="0.8" repr="0>0|3"  transRatio="1" forcePointRatio="0.5" initialCompression="12" suspTravel="0.2" spring="27" damper="10" frictionScale=".5" mass="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
	</wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>1|0|0" jointType="semitrailer" isDefaultLowered="true" allowsLowering="false"/>
        </inputAttacherJoints>
        <steeringAxleAngleScale startSpeed="1" endSpeed="90" />		
        <support animationName="moveSupport"/>
		<door animationName="reardoor" />		
        <brakeForce>0.2</brakeForce>
    </attachable>

    <lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
			<state lightTypes="0 1 2" />
        </states>

        <!--realLights>
            <low>
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </low>
            <high>
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </high>
        </realLights-->

        <defaultLights>
            <defaultLight node="coronas" lightTypes="0"/>	
        </defaultLights>

        <brakeLights>
            <brakeLight node="brakeLights"/>		
        </brakeLights>

        <turnLights>
            <turnLightLeft node="turnLeft" />
            <turnLightRight node="turnRight" />
        </turnLights>
		
		<reverseLights>
            <reverseLight node="reverseLights"/>		
        </reverseLights>
    </lights>

    <animations>
        <!-- support -->
        <animation name="moveSupport">
            <part node="0>1|0|1"   	startTime="0" endTime="0.2"  startTrans="-.077 .40 1.47" endTrans="-.077 .05 1.47"/>
            <!--part node="0>4|1"   startTime="0" endTime="0.2"  startTrans="0.192 0.543 3.502" endTrans="0.192 0.38 3.502" /-->
            <!--part node="0>1|0|1|0" 	startTime="0" endTime="0.2"  startTrans=".172 0.35 2.428" endTrans=".172 0 2.428"/-->
            <part node="0>1|1|0" 	startTime="0" endTime="0.2"  startTrans="0 0 0" endTrans="0 -.35 0"/>			
        </animation>
		
        <!--animation name="moveSupport">
			<part node="support"   startTime="0.00" endTime="0.50" startRot="40 0 0" endRot="0 0 0" />
            <part node="supportBase" startTime="0.00" endTime="0.50" startRot="-24 0 0" endRot="0 0 0" />
            <part node="supportCol"   startTime="0.00" endTime="0.50" startTrans="0 0.761 3.411" endTrans="0 0.1 3.411" />			
        </animation-->
		
        <animation name="reardoor">
            <part node="0>1|0|2|0|0"  startTime="0" duration="1" startRot="90 0 0" endRot="90 -90 0"/>
            <part node="0>1|0|2|0|1"  startTime="0" duration="1" startRot="90 0 0" endRot="90 90 0"/>
            <part node="0>1|0|2"  	startTime="1" duration="5" startRot="0 0 0" endRot="0 180 0"/>
        </animation>				
    </animations>

	<foldable>
		<foldingConfigurations>
			<foldingConfiguration>
				<foldingParts startMoveDirection="0" posDirectionText="close_DOOR" negDirectionText="open_DOOR">
					<foldingPart animationName="reardoor" speedScale="1"/>
				</foldingParts>
			</foldingConfiguration>
		</foldingConfigurations>
	</foldable>		

    <livestockTrailer>
        <animal type="sheep" node="0>8|0" numSlots="14" />
        <animal type="pig"   node="0>8|1" numSlots="12" />
        <animal type="cow"   node="0>8|2" numSlots="6" />
        <animal type="horse" node="0>8|3" numSlots="6" />		
    </livestockTrailer>

    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="4.5" maxZ="7.4" yOffset="1.15" />
        <bendingNode minX="-1.35" maxX="1.35" minZ="-7.6" maxZ="4.5" yOffset="0.6" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
    <i3dMappings>
        <i3dMapping id="reverseLights" node="0>1|0|8|3" />
        <i3dMapping id="turnRight" node="0>1|0|8|0|1" />
        <i3dMapping id="turnLeft" node="0>1|0|8|0|0" />
        <i3dMapping id="brakeLights" node="0>1|0|8|1" />
        <i3dMapping id="coronas" node="0>1|0|8|2" />
    </i3dMappings>		
		
</vehicle>
