<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="zav3200" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>ZA-V 3200</name>
        <specs>
            <workingWidth>42.0</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="1100" filterSpecMax="1300"/>
        </specs>
        <functions>
            <function>$l10n_function_fertilizer</function>
        </functions>
        <image>store_zav3200profistronic.png</image>
        <price>25100</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>AMAZONE</brand>
        <category>fertilizerSpreaders</category>
        <shopLoadingDelay initial="0.15"/>
        <vertexBufferMemoryUsage>1153792</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>293120</indexBufferMemoryUsage>
        <textureMemoryUsage>2424832</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_fertilizerSpreader</typeDesc>
        <filename>zav3200.i3d</filename>
        <size width="2.97" length="1.70" height="1.92" lengthOffset="0"/>
        <speedLimit value="20" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="481"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <powerConsumer ptoRpm="450" neededMaxPtoPower="15"/>

    <lights>
	    <sharedLight linkNode="0>1|4|0" filename="$data/shared/assets/lights/lizard/frontLight07_left.xml" />
        <sharedLight linkNode="0>1|4|1" filename="$data/shared/assets/lights/lizard/frontLight07_right.xml" />
		
        <realLights>
            <high>
                <light node="0>1|2|0" lightTypes="0"/>
                <turnLightLeft  node="0>1|3|0"/>
				<turnLightLeft  node="0>1|3|1"/>
                <turnLightRight node="0>1|3|2"/>
				<turnLightRight node="0>1|3|3"/>
                <brakeLight     node="0>1|2|0"/>
            </high>
        </realLights>

        <staticLightCompounds>
            <staticLightCompound>
                <node node="0>1|1|0" intensity="5"/>
                <node node="0>1|1|1" intensity="1"/>
            </staticLightCompound>
        </staticLightCompounds>
    </lights>

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false">
            <area startNode="0>5|0" widthNode="0>5|1" heightNode="0>5|2" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
    </workAreas>

	<attachable>
        <inputAttacherJoints>
			<inputAttacherJoint node="0>0|0" topReferenceNode="0>0|1" jointType="implement" isControllable="true" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" upperRotationOffset="0" >
                <distanceToGround lower="0" upper="1.0" />
				<bottomArm categories="3" ballType="1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
		<support animationName="moveSupport"/>
    </attachable>
	
	<powerTakeOffs>
		<input inputAttacherJointIndices="1" inputNode="0>0|3" aboveAttacher="true" detachNode="0>0|4" materialTemplateName="SHARED_BLACK1" decalMaterialTemplateName="WALTERSCHEID_YELLOW1"/>
    </powerTakeOffs>
	
	<attacherJointControl maxTiltAngle="25">
        <control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_CRANE_TOOL" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_TRANS"/>
        <control controlFunction="controlAttacherJointTilt"   controlAxis="AXIS_CRANE_TOOL2" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_ROTX"/>
    </attacherJointControl>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="0>0|2|0" length="1.6" diameter="0.01" straighteningFactor="0.2">
            <objectChange node="0>0|2|0|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="isobus" node="0>0|2|1" adapterNode="0>0|2|1|0|0" length="1.4" diameter="0.01" straighteningFactor="1">
            <objectChange node="0>0|2|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="0>0|2|0|0|0"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <animations>
        <animation name="toggleCover">
            <part node="0>2|0" startTime="1"    endTime="1.02" visibility="true" />
            <part node="0>2|0" startTime="1.02" endTime="1.04" visibility="false" />
            <part node="0>2|1" startTime="1"    endTime="1.02" visibility="false" />
            <part node="0>2|1" startTime="1.02" endTime="1.04" visibility="true" />
            <part node="0>4|3"    startTime="0"    endTime="1" startRot="0 0 0" endRot="0 0 -153.358"/>
            <part node="0>4|2"    startTime="0"    endTime="1" startRot="0 0 0" endRot="0 0 153.358"/>

            <sound template="fabricCover2" startTime="0.99" direction="1"  volumeScale="1.8" pitchScale="1.3"/>
            <sound template="fabricCover1" startTime="0.99" direction="-1" volumeScale="1.8" pitchScale="1.6"/>

            <sound template="clackVar4" startTime="0.01" volumeScale="1.4" pitchScale="1.8"/>
            <sound template="clackVar5" startTime="0.99" volumeScale="0.5" pitchScale="2.1"/>
        </animation>
        <animation name="moveSupport">
            <part node="0>4|4"      startTime="0" endTime="0.2"  startRot="0 0 100" endRot="0 0 0" />
            <part node="0>4|4|1"  startTime="0" endTime="0.2"  startRot="0 90 0" endRot="0 0 0" />
            <part node="0>4|5"     startTime="0" endTime="0.2"  startRot="0 0 -100" endRot="0 0 0" />
            <part node="0>4|5|1" startTime="0" endTime="0.2"  startRot="0 -90 0" endRot="0 0 0" />

			<sound template="clackVar5" startTime="0.09" direction="-1" volumeScale="0.9" pitchScale="1.6" linkNode="0>0|0"/>
            <sound template="latchSmall" startTime="0.19" direction="-1" volumeScale="0.2" pitchScale="1.2" linkNode="0>0|0"/>
            <sound template="clackVar1" startTime="0.01" direction="1" volumeScale="1.5" pitchScale="1.6" linkNode="0>0|0"/>
        </animation>
    </animations>

	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <unloading width="11" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="fertilizer" capacity="3200" >
                        <exactFillRootNode node="0>3|0" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>


    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|1" maxDelta="0.5" fillUnitIndex="1" maxAllowedHeapAngle="16" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>
	
	<sprayer fillUnitIndex="1">
        <usageScales workAreaIndex="1" scale="1" />
        <animationNodes>
            <animationNode node="0>4|0"  rotSpeed="-2500" turnOnFadeTime="0.6" turnOffFadeTime="2" />
            <animationNode node="0>4|1" rotSpeed="2500" turnOnFadeTime="0.6" turnOffFadeTime="2" />
        </animationNodes>

        <effects>
            <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="0>7|0">
                <motionPathEffect textureFilename="$data/vehicles/amazone/zats3200/fertilizerEffectLeftArray.dds" numRows="22" rowLength="32" minFade="0.03" isLeft="true"/>
            </effectNode>
            <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="0>7|1">
                <motionPathEffect textureFilename="$data/vehicles/amazone/zats3200/fertilizerEffectRightArray.dds" numRows="22" rowLength="32" minFade="0.03" isLeft="false"/>
            </effectNode>
        </effects>
    </sprayer>

    <variableWorkWidth>
        <sections>
            <section isLeft="true" maxWidthNode="0>5|3|0"/>
            <section isLeft="true" maxWidthNode="0>5|3|1"/>
            <section isLeft="true" maxWidthNode="0>5|3|2"/>

            <section isLeft="true" maxWidthNode="0>5|3|3"/>
            <section isLeft="true" maxWidthNode="0>5|3|4"/>
            <section isLeft="true" maxWidthNode="0>5|3|5"/>

            <section isLeft="false" maxWidthNode="0>5|3|6"/>
            <section isLeft="false" maxWidthNode="0>5|3|7"/>
            <section isLeft="false" maxWidthNode="0>5|3|8"/>

            <section isLeft="false" maxWidthNode="0>5|3|9"/>
            <section isLeft="false" maxWidthNode="0>5|3|10"/>
            <section isLeft="false" maxWidthNode="0>5|3|11"/>
        </sections>

		<sectionNodes>
            <sectionNode node="0>5|2" isLeft="true"  minTrans="7.5 0 -9"  maxTrans="21 0 -5"/>
            <sectionNode node="0>5|1"  isLeft="false" minTrans="-7.5 0 -9" maxTrans="-21 0 -5"/>

            <sectionNode node="0>6|1|0"  isLeft="true"  minTrans="7.5 0 -8.8"  maxTrans="21 0 -4.8"/>
            <sectionNode node="0>6|1|1" isLeft="false" minTrans="-7.5 0 -8.8" maxTrans="-21 0 -4.8"/>
            <sectionNode node="0>6|1|2"  isLeft="false" minTrans="0 0 -9.2"    maxTrans="0 0 -5.2"/>
        </sectionNodes>
    </variableWorkWidth>

	<turnOnVehicle>
        <sounds>
            <work template="defaultSpreader" linkNode="0>" />
        </sounds>
    </turnOnVehicle>

    <cover>
        <coverConfigurations>
            <coverConfiguration>
                <cover openAnimation="toggleCover" fillUnitIndices="1" />
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <ai>
        <needsLowering value="false" />
        <collisionTrigger node="0>6|2" width="2.885" height="1.9"/>
        <areaMarkers leftNode="0>6|1|0" rightNode="0>6|1|1" backNode="0>6|1|2" width="42"/>
        <sizeMarkers leftNode="0>6|0|0" rightNode="0>6|0|1" backNode="0>6|0|2" />
        <agentAttachment width="2.9" height="1.9" length="1.7" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.45" maxZ="0.85" yOffset="0.25" />
        <bendingNode minX="-1.3" maxX="1.3" minZ="-0.8" maxZ="0.7" yOffset="0.85" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
</vehicle>
