<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="FS22_precisionFarming.cropSensor">
   <storeData>
        <name>CROP SENSOR</name>
        <functions>
            <function>$l10n_function_cropSensor</function>
        </functions>
        <image>store_lizardCropSensor.png</image>
        <price>19999</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>misc</category>
        <shopHeight>4</shopHeight>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1325056</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>150528</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_cropSensor</typeDesc>
        <filename>vehicles/lizard/cropSensorIsaria/lizard_Sensor.i3d</filename>
        <size width="3.5" length="3.5" lengthOffset="-0.2" />
        <speedLimit value="20" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="140" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperRotationOffset="0">
                <distanceToGround lower="0.6" upper="1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
		<support animationName="moveSupport" delayedOnAttach="false"/>
    </attachable>

	<connectionHoses>
		<hose inputAttacherJointIndices="1" type="electric" node="priseElc" length="0.8" diameter="0.02" straighteningFactor="1">
          <objectChange node="priseElc_detached" visibilityActive="false" visibilityInactive="true"/>
		  </hose>
		<hose inputAttacherJointIndices="1" type="hydraulicIn" node="airRed" length="0.8" diameter="0.02" straighteningFactor="1">
		  <objectChange node="airRed_detached" visibilityActive="false" visibilityInactive="true"/>
		  </hose>
		<hose inputAttacherJointIndices="1" type="hydraulicIn" node="airYellow" length="0.8" diameter="0.02" straighteningFactor="1">
		  <objectChange node="airYellow_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                 <foldingParts startMoveDirection="0.4" startAnimTime="1.0" turnOnFoldMaxLimit="0.4" turnOnFoldMinLimit="0" turnOnFoldDirection="-1" detachingMinLimit="0.95" detachingMaxLimit="1" unfoldWarning="warning_firstUnfoldTheTool">
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
           </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

	<cylindered>
        <movingTools>
			<movingTool node="rightArm" playSound="true">
                <dependentPart node="rightArmHy" />
            </movingTool>
			<movingTool node="rightArm2" playSound="true">
                <dependentPart node="rightArm3_1" />
            </movingTool>
			<movingTool node="leftArm" playSound="true">
                <dependentPart node="leftArmHy" />
            </movingTool>
			<movingTool node="leftArm2" playSound="true">
                <dependentPart node="leftArm3_1" />
            </movingTool>
		</movingTools>

        <movingParts>
			<movingPart node="rightArmHy" referencePoint="rightArmHyRef" referenceFrame="rightArmHy2" >
                <translatingPart node="rightArmHy2" />
            </movingPart>
			<movingPart node="rightArm3_1" referencePoint="rightArm3Ref" referenceFrame="rightArm3_2" >
                <translatingPart node="rightArm3_2" />
            </movingPart>
			<movingPart node="leftArmHy" referencePoint="leftArmHyRef" referenceFrame="leftArmHy2" >
                <translatingPart node="leftArmHy2" />
            </movingPart>
			<movingPart node="leftArm3_1" referencePoint="leftArm3Ref" referenceFrame="leftArm3_2" >
                <translatingPart node="leftArm3_2" />
            </movingPart>
		</movingParts>
    </cylindered>

	<animations>
		<animation name="folding">
			<part node="rightArm" startTime="0" endTime="4"  startRot="0.0 0.0 0.0" endRot="0.0 0.0 -127.3" />
			<part node="rightArm2" startTime="0" endTime="4"  startRot="0.0 0.0 0.0" endRot="0.0 0.0 110.4" />
			<part node="leftArm" startTime="3" endTime="7"  startRot="0.0 0.0 0.0" endRot="0.0 0.0 127.3" />
			<part node="leftArm2" startTime="3" endTime="7"  startRot="0.0 0.0 0.0" endRot="0.0 0.0 -110.4" />
			
            <sound template="hydraulicLayerTone" startTime="0.01" endTime="3.99" volumeScale="0.9" pitchScale="0.7"/>
			<sound template="hydraulicLayerTone" startTime="3.01" endTime="6.99" volumeScale="0.9" pitchScale="0.7"/>
		</animation>
	</animations>
	
	<ai>
        <agentAttachment width="2.5" height="2.95" length="1" lengthOffset="0"/>
    </ai>

    <cropSensor>
        <sensorNode node="sensorNodeLeft"  radius="15" /> 
        <sensorNode node="sensorNodeRight" radius="15" />
    </cropSensor>
	
    <foliageBending>
        <bendingNode minX="-1.4" maxX="1.4" minZ="-1.1" maxZ="0.6" yOffset="0.6" />
        <bendingNode minX="-2.1" maxX="2.1" minZ="-0.3" maxZ="0.3" yOffset="-0.05" node="LizardSensor_vis1" />
		<bendingNode minX="0" maxX="-3.5" minZ="-0.3" maxZ="0.2" yOffset="-0.05" node="rightArm" />
		<bendingNode minX="0" maxX="3.5" minZ="-0.3" maxZ="0.2" yOffset="-0.05" node="leftArm" />
		<bendingNode minX="0" maxX="-3.5" minZ="-0.3" maxZ="0.2" yOffset="-0.05" node="rightArm2" />
		<bendingNode minX="0" maxX="3.5" minZ="-0.3" maxZ="0.2" yOffset="-0.05" node="leftArm2" />
    </foliageBending>

    <baseMaterial>
        <material name="base" baseNode="LizardSensor_vis1">
            <shaderParameter name="colorMat0" value="0.6 0 0 0"/>
        </material>
    </baseMaterial>
	
	<designMaterialConfigurations price="100" useDefaultColors="true">
        <designMaterialConfiguration color="0.6 0 0 0" name="$l10n_colorRed" />
        <material name="base" shaderParameter="colorMat0"/>
    </designMaterialConfigurations>

    <wearable wearDuration="420" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="80" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>
    
    <i3dMappings>
        <i3dMapping id="lizardSensor_main_component1" node="0>" />
        <i3dMapping id="LizardSensor_vis1" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
		<i3dMapping id="priseElc" node="0>0|1|0" />
        <i3dMapping id="priseElc_detached" node="0>0|1|0|0" />
        <i3dMapping id="airRed" node="0>0|1|1" />
        <i3dMapping id="airRed_detached" node="0>0|1|1|0" />
        <i3dMapping id="airYellow" node="0>0|1|2" />
        <i3dMapping id="airYellow_detached" node="0>0|1|2|0" />
		
        <i3dMapping id="rightArm" node="0>1|1" />
		<i3dMapping id="rightArm2" node="0>1|1|0" />
		<i3dMapping id="rightArmHy" node="0>1|6" />
		<i3dMapping id="rightArmHy2" node="0>1|6|0" />
		<i3dMapping id="rightArmHyRef" node="0>1|1|1" />
		<i3dMapping id="rightArm3Ref" node="0>1|1|0|0" />
		<i3dMapping id="rightArm3_1" node="0>1|7" />
		<i3dMapping id="rightArm3_2" node="0>1|7|0" />
		<i3dMapping id="sensorNodeRight" node="0>1|1|0|2" />
		
        <i3dMapping id="leftArm" node="0>1|0" />
		<i3dMapping id="leftArm2" node="0>1|0|0" />
		<i3dMapping id="leftArmHy" node="0>1|5" />
		<i3dMapping id="leftArmHy2" node="0>1|5|0" />
		<i3dMapping id="leftArmHyRef" node="0>1|0|1" />
		<i3dMapping id="leftArm3Ref" node="0>1|0|0|0" />
		<i3dMapping id="leftArm3_1" node="0>1|8" />
		<i3dMapping id="leftArm3_2" node="0>1|8|0" />
		 <i3dMapping id="sensorNodeLeft" node="0>1|0|0|2" />
    </i3dMappings>
</vehicle>
