<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="horseCarriage">
	<storeData>
        <name>$l10n_shopItem_horseCarriageShort</name>
        <functions>
            <function>$l10n_function_horseCarriage</function>
        </functions>
        <image>store/store_horseCarriageShort.png</image>
        <price>2300</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LSFMHA</brand>
        <category>hofBergmannHorseAddonPack</category>
    </storeData>

	<base>
        <typeDesc>$l10n_typeDesc_horseCarriage</typeDesc>
        <filename>horseCarriageShort.i3d</filename>
        <size width="3" length="8.0"/>
        <components>
         	<component centerOfMass="0 0 0.2" solverIterationCount="10" mass="1200"/>
			<component solverIterationCount="10" mass="20"/>
            <joint component1="1" component2="2" node="jointLight" rotLimit="25 25 25" transLimit="0 0 0" />
		</components>
        <schemaOverlay attacherJointPosition="0 0" name="CARRIAGE" />
		<showInVehicleMenu>true</showInVehicleMenu>
        <mapHotspot type="TRAILER" />
    </base>
	
	<configurationSets>
        <configurationSet  name="$l10n_configuration_valueCarriagePlatform" isDefault="true">
            <configuration name="tensionBelts" index="3" />
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="1" />
            <configuration name="trailer"      index="1" />
			<configuration name="vehicleType"  index="1" />
        </configurationSet>
		
        <configurationSet  name="$l10n_configuration_valueCarriageThrough">
            <configuration name="tensionBelts" index="2" />
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="2" />
            <configuration name="trailer"      index="2" />
			<configuration name="vehicleType"  index="2" />
        </configurationSet>
		
		<!-- <configurationSet  name="$l10n_configuration_valueCarriageBarrel" params="2000">
            <configuration name="tensionBelts" index="1" />
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="3" />
            <configuration name="trailer"      index="3" />
			<configuration name="vehicleType"  index="3" />
        </configurationSet> -->
    </configurationSets>

	<wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="10.0" speedDependentRotateBack="false" hasSurfaceSounds="false">
					<wheel isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0" repr="wheelFrontLeft" radius="0.48" width="0.1" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="1.5" mass="2"/>
						<tire tireTrackAtlasIndex="4" />
                    </wheel>
					
					<wheel isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0" repr="wheelFrontRight" radius="0.48" width="0.1" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="1.5" mass="2"/>
						<tire tireTrackAtlasIndex="4" />
                    </wheel>
				</wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" rootNode="horseCarriage_main_component1" jointType="trailer"> <!-- attacherHeight="0.555" -->
				<subType name="horseAttacher3" showWarning="false"/>
				<objectChange node="strap_connectNodeLeft" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="strap_connectNodeRight" visibilityActive="true" visibilityInactive="false"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="brakeAnimation"/>
        <brakeForce force="0.04" maxForce="0.08" maxForceMass="800"/>
		
		<sounds>
            <active file="sounds/woodenWheelbarrow.wav" innerRadius="10" outerRadius="50" volumeScale="25" isLocalSound="true" pitchScale="0.9">
                <volume indoor="1.0" outdoor="1.0" >
                    <modifier type="WHEEL_SUSPENSION" value="-0.07" modifiedValue="0.4"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.00" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.07" modifiedValue="0.4"/>

                    <modifier type="SPEED" value="0.0" modifiedValue="0"/>
                    <modifier type="SPEED" value="2.0" modifiedValue="1.0"/>
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0"/>
                </volume>
                <lowpassCutoffFrequency indoor="300" outdoor="20000" />
                <lowpassGain indoor="0.7" outdoor="1" />
            </active>
        </sounds>
    </attachable>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" hoseType="RUBBER" node="strap_connectNodeLeft" 	length="0.001" diameter="0.028" straighteningFactor="0.01" materialTemplateName="SHARED_BLACK5"/>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" hoseType="RUBBER" node="strap_connectNodeRight" length="0.001" diameter="0.028" straighteningFactor="0.01" materialTemplateName="SHARED_BLACK5"/>
	</connectionHoses>
			
	<lights>
		<defaultLights>
            <defaultLight shaderNode="glass_frontLightLeft" lightTypes="0" intensity="100" toggleVisibility="true"/>
        </defaultLights>

        <realLights>
            <high>
                <light node="pointLight1" lightTypes="0" />
            </high>
        </realLights>
    </lights>
	
	<fillUnit>
        <fillUnitConfigurations>
			<fillUnitConfiguration name="$l10n_configuration_valueTrailer0L" price="0" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="BULK" capacity="0" />
                </fillUnits>
            </fillUnitConfiguration>
		
            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="1000">
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="WINDROW MANURESPREADER" capacity="1000" allowAILoading="false" updateFillLevelMass="false">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			
			<!-- <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="2000" allowAILoading="false" updateFillLevelMass="false">
                        <exactFillRootNode node="exactFillRootNodeBarrel" />
                    </fillUnit>
				</fillUnits>
            </fillUnitConfiguration> -->
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
			<fillVolumeConfiguration />
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.28" maxAllowedHeapAngle="35" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="unloadInfo01" width="2" length="3.0" />
            </unloadInfo>
            <unloadInfo>
                <node node="unloadInfo02" width="2" length="3.0" />
            </unloadInfo>
            <unloadInfo>
                <node node="unloadInfo03" width="2" length="3.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
	
	<trailer>
        <trailerConfigurations>
			<trailerConfiguration>
            </trailerConfiguration>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation    name="folding"     speedScale="1.1" startTipTime="0.01"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
			
			<trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="2">
                        <animation    name="leverAnimation"     speedScale="1.1" startTipTime="0.01"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <dischargeable>
        <dischargeNode node="dischargeNodeBack" emptySpeed="180" fillUnitIndex="1" unloadInfoIndex="1" canDischargeToGroundAnywhere="true">
            <info width="2.0" length="5.0" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectParticleBack" effectClass="ParticleEffect" materialType="unloadingParticle" />
                    <effectNode effectNode="effectGrainBack" materialType="unloading" materialTypeId="1" fadeTime="2.5" extraDistanceNode="dischargeNodeBack" extraDistance="0"/>
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="unloadingSmoke"     materialTypeId="1" fadeTime="2.5" />
            </effects>
        </dischargeNode>
		
		<!-- <dischargeNode node="dischargeNode" emptySpeed="100" fillUnitIndex="1" maxDistance="6" canStartDischargeAutomatically="false">
            <info width="0.4" length="0.4" />
			<trigger node="dischargeTrigger" />

            <effects>
                <effectNode effectNode="pipeEffect" materialType="washer" materialTypeId="1"  delay="0" fadeTime="0.5" /> 
            </effects>
        </dischargeNode> -->
    </dischargeable>
	
	<!-- <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="800"/> -->
	
	<!-- <waterTrailer fillUnitIndex="1" fillLitersPerSecond="800" fillNode="exactFillRootNodeBarrel">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer> -->
	
    <animations>
		<animation name="brakeAnimation">
            <part node="brakeSystemBase" startTime="0.0" endTime="0.5" startTrans="0 0.63735002 -0.58914757" endTrans="0 0.63735002 -0.56311804" />
		</animation>
		
		<animation name="folding">
            <part node="rearHatch"  startTime="0"    endTime="0.05" visibility="true" />
            <part node="rearHatch"  startTime="0.05" endTime="0.1"  visibility="false" />
			
			<part node="rearHatch"  startTime="0.1" 	endTime="0.11" startRot="0 0 0" endRot="90 0 0" startTrans="0 0.73500001 -1.01390231" endTrans="0 0.68154669 -0.349" />

			<sound file="sounds/pickupObject.wav" linkNode="horseCarriage_light_component2" innerRadius="5.0" outerRadius="50.0" startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="1.5">
                <volume indoor="1.0" outdoor="1.0" />
            </sound>
			
			<sound file="sounds/pickupObject.wav" linkNode="horseCarriage_light_component2" innerRadius="5.0" outerRadius="50.0" startTime="0.01" direction="-1"  volumeScale="1.4" pitchScale="1.5">
                <volume indoor="1.0" outdoor="1.0" />
            </sound>
        </animation>
		
		<!-- <animation name="leverAnimation">
            <part node="lever" startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="0 -90 0" />
		</animation> -->
	</animations>
	
	<foldableTrigger triggerNode="playerTrigger"/>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="-1" requiresPower="false">
                    <foldingPart animationName="folding" speedScale="1.0" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
	<tensionBelts>
        <tensionBeltsConfigurations>
			<!-- Config1 None -->
			<tensionBeltsConfiguration />
            
			<!-- Config2 Through -->
			<tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" tensionBeltType="textilRope" jointNode="horseCarriage_main_component1" width="0.035" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="tensionBeltStart1" endNode="tensionBeltEnd1" />
                    <tensionBelt startNode="tensionBeltStart2" endNode="tensionBeltEnd2" />
                    <tensionBelt startNode="tensionBeltStart3" endNode="tensionBeltEnd3" />
					
					<sounds>
                        <addBelt    template="beltOpen" />
                        <removeBelt template="beltClose" />
                    </sounds>
                </tensionBelts>
            </tensionBeltsConfiguration>
			
			<!-- Config3 Platform  -->
			<tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" tensionBeltType="textilRope" jointNode="horseCarriage_main_component1" width="0.035" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="tensionBeltStart1" endNode="tensionBeltEnd1" />
                    <tensionBelt startNode="tensionBeltStart2" endNode="tensionBeltEnd2" />
                    <tensionBelt startNode="tensionBeltStart3" endNode="tensionBeltEnd3" />
					
					<sounds>
                        <addBelt    template="beltOpen" />
                        <removeBelt template="beltClose" />
                    </sounds>
                </tensionBelts>
				
				<objectChange node="tensionBeltStart1" translationActive="0.52499998 0.81272429 0.49796101"   translationInactive="0.46900001 0.82508701 0.49796101"/>
				<objectChange node="tensionBeltStart2" translationActive="0.52499998 0.81300002 -0.32763901"  translationInactive="0.46900001 0.82499999 -0.32763901"/>
				<objectChange node="tensionBeltStart3" translationActive="0.52499998 0.81300002 -1.12241995"  translationInactive="0.46900001 0.82499999 -1.12241995"/>
				
				<objectChange node="tensionBeltEnd1" translationActive="0 0 1.049"  translationInactive="0 0 0.93772298"/>
				<objectChange node="tensionBeltEnd2" translationActive="0 0 1.049"  translationInactive="0 0 0.93772298"/>
				<objectChange node="tensionBeltEnd3" translationActive="0 0 1.049"  translationInactive="0 0 0.93772298"/>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<vehicleTypeConfigurations>
		<vehicleTypeConfiguration name="$l10n_configuration_valuePlatform" price="0" vehicleType="trailer">
			<objectChange node="carriagePlatform" visibilityActive="true" visibilityInactive="false"/>
			<objectChange node="carriageTrough" visibilityActive="false"/>
			<objectChange node="boardCol01" compoundChildActive="false" />
			<objectChange node="boardCol02" compoundChildActive="false" />
			<objectChange node="boardCol03" compoundChildActive="false" />
			<objectChange node="boardCol04" compoundChildActive="false" />
       	</vehicleTypeConfiguration>
		
		<vehicleTypeConfiguration name="$l10n_configuration_valueThrough" price="0" vehicleType="horseCarriage">
			<objectChange node="carriageTrough" visibilityActive="true"/>
			<objectChange node="boardCol01" compoundChildActive="true" />
			<objectChange node="boardCol02" compoundChildActive="true" />
			<objectChange node="boardCol03" compoundChildActive="true" />
			<objectChange node="boardCol04" compoundChildActive="true" />
       	</vehicleTypeConfiguration>
		
		<!-- <vehicleTypeConfiguration name="$l10n_configuration_valueBarrel" price="0" vehicleType="horseCarriageWater">
			<objectChange node="carriageBarrel" visibilityActive="true"/>
			<objectChange node="boardCol01" compoundChildActive="true" />
			<objectChange node="boardCol02" compoundChildActive="true" />
			<objectChange node="boardCol03" compoundChildActive="true" />
			<objectChange node="boardCol04" compoundChildActive="true" />
       	</vehicleTypeConfiguration> -->
	</vehicleTypeConfigurations>

	<ai supportsAIJobs="false" >
		<agentAttachment />
	</ai>

	<foliageBending>
        <bendingNode minX="-0.8" maxX="0.8" minZ="1.0" maxZ="-1.085" yOffset="0.4" />
    </foliageBending>
	
	<realDirtColor disable="true" />
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
		<i3dMapping id="horseCarriage_main_component1" node="0>" />
		<i3dMapping id="wheelFrontLeft" node="0>0|0" />
		<i3dMapping id="wheelFrontRight" node="0>0|1" />
		<i3dMapping id="exactFillRootNode" node="0>1|0" />
		<i3dMapping id="fillVolume" node="0>1|1" />
		<i3dMapping id="unloadInfo01" node="0>1|2" />
		<i3dMapping id="unloadInfo02" node="0>1|3" />
		<i3dMapping id="unloadInfo03" node="0>1|4" />
		<i3dMapping id="dischargeNodeBack" node="0>1|5" />
		<i3dMapping id="effects" node="0>1|6" />
		<i3dMapping id="particleBack" node="0>1|6|0" />
		<i3dMapping id="effectNodesBack" node="0>1|6|0|0" />
		<i3dMapping id="effectGrainBack" node="0>1|6|0|0|0" />
		<i3dMapping id="effectSmokeBack" node="0>1|6|0|0|1" />
		<i3dMapping id="particleNodeBack" node="0>1|6|0|1" />
		<i3dMapping id="effectParticleBack" node="0>1|6|0|1|0" />
		<i3dMapping id="carriagePlatform" node="0>2|0" />
		<i3dMapping id="tensionBeltClips" node="0>2|0|0" />
		<i3dMapping id="carriageTrough" node="0>2|1" />
		<i3dMapping id="boardCol01" node="0>2|1|3" />
		<i3dMapping id="boardCol02" node="0>2|1|4" />
		<i3dMapping id="boardCol03" node="0>2|1|5" />
		<i3dMapping id="rearHatch" node="0>2|1|6" />
		<i3dMapping id="boardCol04" node="0>2|1|6|1" />
		<i3dMapping id="brakeSystemBase" node="0>2|2" />
		<i3dMapping id="playerTrigger" node="0>2|4" />
		<i3dMapping id="attacherBarAttached" node="0>2|6" />
		<i3dMapping id="strap_connectNodeLeft" node="0>2|6|0" />
		<i3dMapping id="strap_connectNodeRight" node="0>2|6|1" />
		<i3dMapping id="attacherBarDetached" node="0>2|7" />
		<i3dMapping id="attacherJoint" node="0>2|8" />
		<i3dMapping id="tensionBelts" node="0>3" />
		<i3dMapping id="beltActivationTrigger" node="0>3|0" />
		<i3dMapping id="tensionBeltStart1" node="0>3|1" />
		<i3dMapping id="tensionBeltEnd1" node="0>3|1|0" />
		<i3dMapping id="tensionBeltStart2" node="0>3|2" />
		<i3dMapping id="tensionBeltEnd2" node="0>3|2|0" />
		<i3dMapping id="tensionBeltStart3" node="0>3|3" />
		<i3dMapping id="tensionBeltEnd3" node="0>3|3|0" />
		<i3dMapping id="horseCarriage_light_component2" node="1>" />
		<i3dMapping id="glass_frontLightLeft" node="1>0|0|0" />
		<i3dMapping id="pointLight1" node="1>0|0|2" />
		<i3dMapping id="glassOff" node="1>0|0|3" />
		<i3dMapping id="jointLight" node="1>1" />
	</i3dMappings>
</vehicle>
