<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="transportBarrowBarrel">
	<storeData>
        <name>$l10n_shopItem_transportBarrowBarrel</name>
		<specs>
            <maxSpeed>10</maxSpeed>
			<fillTypeCategories>LIQUID</fillTypeCategories>
        </specs>
        <functions>
            <function>$l10n_function_transportBarrowBarrel</function>
        </functions>
        <image>store/store_transportBarrowBarrel.png</image>
        <price>550</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LSFMINNOVATIONS</brand>
        <category>lsfmFarmEquipmentPackBarrows</category>
		<shopHeight>1.2</shopHeight>
        <shopTranslationOffset>0 -0.004 0</shopTranslationOffset>
        <shopRotationOffset>-0.216 0 0</shopRotationOffset>
    </storeData>
    
	<base>
        <typeDesc>$l10n_typeDesc_transportBarrowBarrel</typeDesc>
        <filename>transportBarrow.i3d</filename>
        <size width="1.0" length="2.1" height="1.4" />
		<supportsRadio>false</supportsRadio>
		<canBeReset>true</canBeReset>
        <components maxMass="520">
            <component centerOfMass="0 0.242 0" solverIterationCount="10" mass="100"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds filename="sounds/sackBarrow/sackBarrowSound.xml" volumeFactor="1.8"/>
    </base>

	<wheels>
        <wheelConfigurations>
			<wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.6">
					<wheel filename="$data/shared/wheels/tires/mitas/FL02/7_R12.xml" hasTireTracks="true" hasParticles="false" isCareWheel="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="middleWheelPart" driveNode="wheelMiddle" useReprDirection="false" radius="0.185" width="0.1" initialCompression="25" suspTravel="0.05" spring="10" damper="20" mass="0.01"/>
						<tire maxDeformation="0.02" />
					</wheel>
					
                    <wheel filename="$data/shared/wheels/tires/mitas/FL02/7_R12.xml" hasTireTracks="true" hasParticles="false" isCareWheel="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelLeft" useReprDirection="false" radius="0.18" width="0.1" initialCompression="25" suspTravel="0.05" spring="10" damper="20" mass="0.01"/>
						<tire maxDeformation="0.02" />					
					</wheel>
                    
					<wheel filename="$data/shared/wheels/tires/mitas/FL02/7_R12.xml" isLeft="false" hasTireTracks="true" hasParticles="false" isCareWheel="true">
                        <physics rotSpeed="1" restLoad="0.5" repr="wheelRight" useReprDirection="false" radius="0.18" width="0.1" initialCompression="25" suspTravel="0.05" spring="10" damper="20" mass="0.01"/>
						<tire maxDeformation="0.02" />
					</wheel>
				</wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="65" rotMax="35" rotCenterWheel1="2" rotCenterWheel2="3" rotCenterNode="middleWheelPart"/>
        </ackermannSteeringConfigurations>

		<hubs>
            <color0>FENDT_BLACK1</color0>
            <color1>FENDT_BLACK1</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.2 0.22 0.22" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.2 0.22 0.22" />
			<hub linkNode="wheelMiddle" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.19 0.22 0.22" />
			<hub linkNode="wheelMiddle" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false"  scale="0.19 0.22 0.22" />
        </hubs>
    </wheels>

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.65" />
        </inputAttacherJoints>
		<support animationName="moveSupport" />
    </attachable>
	
	<enterable isTabbable="false" enterText="$l10n_enterText_transportBarrowBarrel">
        <enterReferenceNode node="enterReferenceNode" interactionRadius="2.0"/>
        <exitPoint node="enterReferenceNode"/>
		<nicknameRenderNode node="playerNode" offset="0 2 0"/>
        
		<cameras>
            <camera node="outdoorCamera" rotatable="true" rotateNode="outdoorCameraRot" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3" transMax="20">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
            </camera>
            <camera node="indoorCamera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="false" />
        </cameras>

		<characterNode node="skeleton" animationNode="2" cameraMinDistance="1.75" spineRotation="270 0 90" useAnimation="true" />
    </enterable>

	<motorized turnOnText="$l10n_action_farmEquipmentOnText" turnOffText="$l10n_action_farmEquipmentOffText" forceSpeedHudDisplay="true">
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.2" maxSpeedRatio="3.0" wheelIndex1="2" wheelIndex2="3"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
       	
		<motorConfigurations>
			<motorConfiguration price="0" hp="8.7">
                <motor torqueScale="0.077" minRpm="850" maxRpm="2200" maxForwardSpeed="7" maxBackwardSpeed="5" brakeForce="0.1" lowBrakeForceScale="0.1" accelerationLimit="1.6" dampingRateScale="0.08">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="118" maxForwardGearRatio="320" minBackwardGearRatio="165" maxBackwardGearRatio="320"/>
            </motorConfiguration>
        </motorConfigurations>
    </motorized>

	<pushHandTool>
        <raycast node1="raycast01" node2="raycast02" playerNode="playerNode" positionSmoothnessFactor="0.65" positionSmoothnessFactorSteering="0"/>
        <wheels front="2 3" back="1"/>
		<!-- <spine rotationForward="-10" rotationBackward="-10" rotationIdle="-5" ratio="0.6 0.2 0.2" speed="40"/> -->
        
		<ikChains>
            <target ikChain="rightArm"  targetNode="playerRightHandTarget" poseId="wideFingers" /> 
            <target ikChain="leftArm"   targetNode="playerLeftHandTarget" poseId="wideFingers"/>
        </ikChains>

		<customChainLimits>
            <customChainLimit chainId="leftArm" nodeIndex="1" minRx="-50" maxRx="50" minRy="-80" maxRy="80" minRz="-75" maxRz="10" localLimits="true"/>
            <customChainLimit chainId="leftArm" nodeIndex="2" minRx="-25" maxRx="25" minRy="-144" maxRy="-25" minRz="-10" maxRz="10" localLimits="true"/>

            <customChainLimit chainId="rightArm" nodeIndex="1" minRx="-50" maxRx="50" minRy="-80" maxRy="80" minRz="-75" maxRz="10" localLimits="true"/>
            <customChainLimit chainId="rightArm" nodeIndex="2" minRx="-25" maxRx="25" minRy="-144" maxRy="-25" minRz="-10" maxRz="10" localLimits="true"/>
        </customChainLimits>

        <playerConditionalAnimation>
            <item id="idle" entryTransitionDuration="0.25" exitTransitionDuration="0.25" >
                <clips>
                    <clip clipName="idle1Source" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="absSmoothedForwardVelocity" lower="0.2" />
                    </conditionGroup>
                </conditions>
            </item>
            <item id="walk" entryTransitionDuration="0.25" exitTransitionDuration="0.25" >
                <clips speedScaleType="distance" speedScaleParameter="1.8">
                    <!-- <clip clipName="walkFwd1Source" /> -->
					<clip clipName="NPCWalkMale03Source" />
					<!-- <clip clipName="NPCWalkFemale01Source" /> -->
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="smoothedForwardVelocity" between="0.3, 4"/>
                    </conditionGroup>
                </conditions>
            </item>
            <item id="walkBack" entryTransitionDuration="0.5" exitTransitionDuration="0.25" >
                <clips speedScaleType="distance" speedScaleParameter="2.25">
                    <clip clipName="walkBwdLoopSource" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="smoothedForwardVelocity" between="-3, -0.3" />
                    </conditionGroup>
                </conditions>
            </item>
        </playerConditionalAnimation>
    </pushHandTool>

	<lights>
	</lights>

	<ai supportsAIJobs="false" >
		<agentAttachment />
	</ai>
    
	<drivable>
        <sounds>
            <waterSplash template="waterSplash01"/>
        </sounds>
        <cruiseControl enabled="false"/>
    </drivable> 

	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="500">
                <fillUnits fillTypeChangeThreshold="1">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="500" >
                        <dashboard displayType="TEXT" valueType="fillLevel" node="numbersFillLevelFront" textColor="0.05 0.05 0.05 1" textSize="0.007" textMask="0000" font="DIGIT" textAlignment="RIGHT"/>
                        <dashboard displayType="TEXT" valueType="fillLevel" node="numbersFillLevelBack" textColor="0.05 0.05 0.05 1" textSize="0.007" textMask="0000" font="DIGIT" textAlignment="RIGHT"/>
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
				</fillUnits>
                <objectChange node="platformConfig" visibilityActive="false"/>
                <objectChange node="barrelConfig" visibilityActive="true"/>
                <objectChange node="col3" compoundChildActive="false"/>
				<objectChange node="barrelCol" compoundChildActive="true"/>
				<objectChange node="serviceConfig" visibilityActive="false"/>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

	<trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideFront" dischargeNodeIndex="1">
                        <animation name="tipAnimationFront" speedScale="1.0" startTipTime="0.15"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
	<dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="50" fillUnitIndex="1" maxDistance="6" canStartDischargeAutomatically="false">
            <info width="2.0" length="2.5" />
			<trigger node="dischargeTrigger" />

            <effects>
                <effectNode effectNode="pipeEffect" materialType="washer" delay="0" fadeTime="0.5" /> 
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<waterTrailer fillUnitIndex="1" fillLitersPerSecond="50" fillNode="transportBarrow_main_component1">
        <sounds>
            <refill template="defaultRefuelSound" linkNode="0>" />
        </sounds>
    </waterTrailer>

	<fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="300"/>

	<cover>
        <coverConfigurations>
            <coverConfiguration name="$l10n_configuration_valueDefault" price="0" openOnBuy="false" openCoverWhileTipping="false" >
                <cover openAnimation="toggleCover" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>
	
	<cylindered>
        <movingTools>
            <movingTool node="cover" playSound="true"/>
        </movingTools>

       	<sounds>
			<hydraulic file="sounds/cover.wav" innerRadius="5.0" outerRadius="45.0" indoor="0.40" outdoor="0.90" linkNode="cover"/>
        </sounds>
    </cylindered>

	<animations>
		<animation name="moveSupport">
            <part node="attacherBar_attached" startTime="0.00" endTime="0.05" visibility="true"/>
            <part node="attacherBar_attached" startTime="0.05" endTime="0.10" visibility="false"/>
			<part node="attacherBar_detached" startTime="0.00" endTime="0.05" visibility="false"/>
            <part node="attacherBar_detached" startTime="0.05" endTime="0.10" visibility="true"/>
			<part node="middleWheelPart" startTime="0.00" endTime="0.05" visibility="false"/>
            <part node="middleWheelPart" startTime="0.05" endTime="0.10" visibility="true"/>
        </animation>

		<animation name="tipAnimationFront">
			<part node="tapLock" startTime="0.0" endTime="1" startRot="0 0 0" endRot="0 -90 0" />
        </animation>

		<animation name="toggleCover">
			<part node="cover" startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="-146.795 0 0" />
			<part node="fillTrigger" startTime="0.0" endTime="0.5" startTrans="0 -50 0" endTrans="0 0 0" />
        </animation>
	</animations>
	
	<tensionBeltObject>
        <meshNodes>
            <meshNode node="transportBarrow_vis"/>
            <meshNode node="platform_vis"/>
            <meshNode node="barrel_vis"/>
            <meshNode node="cover"/>
        </meshNodes>
    </tensionBeltObject>	

	<turnOnVehicle isAlwaysTurnedOn="true"/>
    
	<foliageBending>
        <bendingNode minX="-0.412" maxX="0.412" minZ="-0.733" maxZ="0.681" yOffset="0.5"/>
    </foliageBending>
    
	<baseColorConfigurations useDefaultColors="true">
        <baseColorConfiguration materialTemplateName="FENDT_NEWGREEN1"/>
		<baseColorConfiguration materialTemplateName="silverScratched"/>
		<baseColorConfiguration color="0.1 0.15 0.1" name="SPECIAL GREEN" />
		
		<material materialSlotName="base_color_mat"/>
		<material materialSlotName="barrelBase_color_mat"/>
		<material materialSlotName="wheelPart_color_mat"/>
    </baseColorConfigurations>
	
	<designColorConfigurations title="$l10n_configuration_designColor" useDefaultColors="true" >
        <designColorConfiguration materialTemplateName="SHARED_WHITE2"/>
		<designColorConfiguration materialTemplateName="silverScratched"/>
		<designColorConfiguration materialTemplateName="silverCircularBrushed"/>
		<designColorConfiguration materialTemplateName="chrome"/>
        <designColorConfiguration color="0.1 0.15 0.1" name="SPECIAL GREEN" />

        <material materialSlotName="barrel_color_mat"/>
    </designColorConfigurations>

	<rimColorConfigurations price="0" useDefaultColors="true" >
        <rimColorConfiguration color="FENDT_RED1"/>
    </rimColorConfigurations>

	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
       
	<i3dMappings>
		<i3dMapping id="transportBarrow_main_component1" node="0>" />
		<i3dMapping id="wheelMiddleFront" node="0>0" />
		<i3dMapping id="middleWheelPart" node="0>0|0" />
		<i3dMapping id="wheelMiddle" node="0>0|0|0" />
		<i3dMapping id="wheelLeft" node="0>1" />
		<i3dMapping id="wheelRight" node="0>2" />
		<i3dMapping id="outdoorCameraRot" node="0>3|0" />
		<i3dMapping id="outdoorCamera" node="0>3|0|0" />
		<i3dMapping id="indoorCamera" node="0>3|1" />
		<i3dMapping id="cameraRaycastNode1" node="0>3|2" />
		<i3dMapping id="cameraRaycastNode2" node="0>3|3" />
		<i3dMapping id="attacherBar_attached" node="0>4|0" />
		<i3dMapping id="attacherJoint" node="0>4|0|0" />
		<i3dMapping id="transportBarrow_vis" node="0>5" />
		<i3dMapping id="platformConfig" node="0>5|0" />
		<i3dMapping id="platform_vis" node="0>5|0|0" />
		<i3dMapping id="tensionBelts" node="0>5|0|1" />
		<i3dMapping id="beltStart1" node="0>5|0|1|0" />
		<i3dMapping id="beltEnd1" node="0>5|0|1|0|0" />
		<i3dMapping id="beltStart2" node="0>5|0|1|1" />
		<i3dMapping id="beltEnd2" node="0>5|0|1|1|0" />
		<i3dMapping id="beltStart3" node="0>5|0|1|2" />
		<i3dMapping id="beltEnd3" node="0>5|0|1|2|0" />
		<i3dMapping id="beltActivationTrigger" node="0>5|0|1|3" />
		<i3dMapping id="barrelConfig" node="0>5|1" />
		<i3dMapping id="barrel_vis" node="0>5|1|0" />
		<i3dMapping id="barrelCol" node="0>5|1|0|3" />
		<i3dMapping id="exactFillRootNode" node="0>5|1|1|0" />
		<i3dMapping id="numbersFillLevelFront" node="0>5|1|1|1|2" />
		<i3dMapping id="numbersFillLevelBack" node="0>5|1|1|2|2" />
		<i3dMapping id="dischargeNode" node="0>5|1|2|0" />
		<i3dMapping id="dischargeTrigger" node="0>5|1|2|1" />
		<i3dMapping id="effects" node="0>5|1|2|2" />
		<i3dMapping id="pipeEffect" node="0>5|1|2|2|0" />
		<i3dMapping id="fillTrigger" node="0>5|1|3|0" />
		<i3dMapping id="tap" node="0>5|1|0|0" />
		<i3dMapping id="tapLock" node="0>5|1|0|0|0" />
		<i3dMapping id="cover" node="0>5|1|0|2" />
		<i3dMapping id="serviceConfig" node="0>5|2" />
		<i3dMapping id="attacherBar_detached" node="0>5|3" />
		<i3dMapping id="aiCollisionTrigger" node="0>6" />
		<i3dMapping id="enterReferenceNode" node="0>7" />
		<i3dMapping id="steeringBase" node="0>8" />
		<i3dMapping id="steeringWheel" node="0>8|0" />
		<i3dMapping id="playerRightHandTarget" node="0>8|0|0" />
		<i3dMapping id="playerLeftHandTarget" node="0>8|0|1" />
		<i3dMapping id="playerNode" node="0>9|0" />
		<i3dMapping id="skeleton" node="0>9|0|0" />
		<i3dMapping id="raycast01" node="0>9|1" />
		<i3dMapping id="raycast02" node="0>9|2" />
		<i3dMapping id="col1" node="0>10|0" />
		<i3dMapping id="col2" node="0>10|1" />
		<i3dMapping id="col3" node="0>10|2" />
		<i3dMapping id="col4" node="0>10|3" />
	</i3dMappings>
</vehicle>