﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="sprayer" 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>Spider SP 6834</name>
        <specs>
            <neededPower>40</neededPower>
            <workingWidth>6.8</workingWidth>
            <combination xmlFilename="$data/vehicles/rudolfSchouten/vt130/vt130.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreaderTool</function>
        </functions>
        <image>$data/vehicles/rudolfSchouten/sp6834/store_sp6834.png</image>
        <price>10000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SCHOUTEN</brand>
        <category>slurryTanks</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <shopHeight>4</shopHeight>
        <vertexBufferMemoryUsage>2954240</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>859648</indexBufferMemoryUsage>
        <textureMemoryUsage>2490368</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureDistributor</typeDesc>
        <filename>$data/vehicles/rudolfSchouten/sp6834/sp6834.i3d</filename>
        <size width="3.8" length="2.5"/>
        <speedLimit value="16"/>
        <components>
            <component centerOfMass="0 0.5 0" solverIterationCount="10" mass="1110" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels  hasSurfaceSounds="false">
                    <wheel>
                        <physics restLoad="0.5" repr="extraWheel01" radius="0.15" width="0.2" mass="0.1" forcePointRatio="0.15" initialCompression="20" suspTravel="0.05" spring="40" damper="40" brakeFactor="0" isSynchronized="false"/>
                    </wheel>
                   <wheel>
                        <physics restLoad="0.5" repr="extraWheel02" radius="0.15" width="0.2" mass="0.1" forcePointRatio="0.15" initialCompression="20" suspTravel="0.05" spring="40" damper="40" brakeFactor="0" isSynchronized="false"/>
                    </wheel>
                    <wheel>
                        <physics restLoad="0.2" repr="wheel01" radius="0.3" width="0.163" forcePointRatio="0.15" mass="0.1" initialCompression="50" suspTravel="0.05" spring="10" damper="25" isSynchronized="false" />
                    </wheel>
                    <wheel>
                        <physics restLoad="0.2" repr="wheel03" radius="0.3" width="0.163" forcePointRatio="0.15" mass="0.1" initialCompression="50" suspTravel="0.05" spring="10" damper="25" isSynchronized="false" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="disc01" radius="0.15" groundReferenceNodeIndex="1" foldMinLimit="0" foldMaxLimit="0.01"/>
        <speedRotatingPart node="disc02" radius="0.15" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="disc03" radius="0.15" groundReferenceNodeIndex="1" foldMinLimit="0" foldMaxLimit="0.01"/>
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topRefNode" lowerRotationOffset="0" upperRotationOffset="0" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 1 0">
                <distanceToGround lower="0.5" upper="1.3"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.2"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" node="topRightPipe" length="2" diameter="0.14" straighteningFactor="2" isTwoPointHose="true">
            <objectChange node="connector" visibilityActive="true" visibilityInactive="false"/>
         </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.3" diameter="0.015" straighteningFactor="0.5">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.3" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="1.3" diameter="0.008" straighteningFactor="0.5">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <powerConsumer forceNode="sp6834_main_component1" maxForce="20" neededMaxPtoPower="0"/>

    <lights>
        <sharedLight linkNode="bigTriangle" filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml" />

        <sharedLight linkNode="sideMarker06_left_static"  filename="$data/shared/assets/lights/lizard/sideMarker18_left.xml" />
        <sharedLight linkNode="sideMarker06_right_static" filename="$data/shared/assets/lights/lizard/sideMarker18_right.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack"/>
                <turnLightRight node="turnLightRightBack"/>
                <brakeLight node="backLightsHigh1"/>
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="backlightStaticGlass" lightTypes="0" />
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStaticGlass"/>
            <turnLightRight shaderNode="turnlightRightStaticGlass"/>
        </turnLights>

        <brakeLights>
            <brakeLight shaderNode="backlightStaticGlass" />
        </brakeLights>
    </lights>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.1" depthNode="depthNode" chargeValue="1"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" needsSetIsTurnedOn="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <workParticles>
        <effect groundReferenceNodeIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="discEffect01LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/rudolfSchouten/sp6834/discEffect01Array.dds" numRows="60" rowLength="18" minFade="0.07" density="0.9" shapeScale="0.5" maxShapeScale="0.5"/>
            </effectNode>
        </effect>
        <particle>
            <node node="smokeEmitter" refNodeIndex="1" particleType="SOIL_SMOKE"/>
        </particle>
    </workParticles>

    <sprayer activateOnLowering="true" activateTankOnLowering="true">
        <usageScales workingWidth="6.8" scale="1"/>

        <effects>
            <effectNode  effectNode="effectSlurry" materialType="slurry" delay="0" dynamicFillType="false"/>
        </effects>
    </sprayer>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1">
                    <foldingPart animationName="folding" speedScale="1"/>
                </foldingParts>
              </foldingConfiguration>
          </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="safetyBarLeftPart01" startTime="0" endTime="2" startRot="0 0 0" endRot="55 0 0"/>
            <part node="safetyBarRightPart01" startTime="0" endTime="2" startRot="0 0 0" endRot="55 0 0"/>
            <part node="leftArm" startTime="0" endTime="4.8" startRot="0 0 0" endRot="0 0 96"/>
            <part node="rightArm" startTime="0.3" endTime="5" startRot="0 0 0" endRot="0 0 -96"/>
            <part node="leftArmLockArm" startTime="5" endTime="5.2" startRot="0 0 20" endRot="0 0 0"/>
            <part node="rightArmLockArm" startTime="5" endTime="5.2" startRot="0 0 -20" endRot="0 0 0"/>
            <part node="groundReferenceNode" startTime="0" endTime="1" startTrans="0 0.04 -0.376" endTrans="0 1 -0.376"/>

            <sound template="defaultHydraulicSound" startTime="0.3" endTime="5" volumeScale="1.4" pitchScale="1.2" fadeIn="0.1" fadeOut="0.1" />
            <sound template="defaultHydraulicSound" startTime="0.01" endTime="4.8" volumeScale="1.4" pitchScale="1" fadeIn="0.1" fadeOut="0.1" />
            <sound template="foldStartSm01" startTime="5" direction="-1" volumeScale="2" pitchScale="0.8" />
            <sound template="foldStartMed01" startTime="4.8" direction="-1" volumeScale="2" pitchScale="1.1" />
            <sound template="foldStopSm01" startTime="0.4" direction="-1" volumeScale="1.6" pitchScale="0.9" />
            <sound template="foldStopSm02" startTime="0.1" direction="-1" volumeScale="1.4" pitchScale="0.9" />
            <sound template="foldStartMed02" startTime="0.01" direction="1" volumeScale="2" pitchScale="0.8" />
            <sound template="foldStartMed01" startTime="0.3" direction="1" volumeScale="2" pitchScale="1.1" />
            <sound template="foldStopSm01" startTime="4.9" direction="1" volumeScale="2" pitchScale="0.8" />
            <sound template="foldStopMed01" startTime="4.8" direction="1" volumeScale="2" pitchScale="1.1" />
        </animation>
        <animation name="moveSupport">
            <part node="supportArm01" startTime="0" endTime="0.3" startTrans="0 0.439 0" endTrans="0 0 0"/>
            <part node="supportCol" startTime="0" endTime="0.3" startTrans="0 0.439 0" endTrans="0 0 0"/>
            <part node="supportArm02" startTime="0" endTime="0.3" startRot="-90 0 0" endRot="0 0 0"/>

            <sound template="clackVar5" startTime="0.2" direction="-1" volumeScale="1.8" pitchScale="1.3" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.2"  volumeScale="2.4" pitchScale="1.5" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.2"  volumeScale="2.4" pitchScale="3" linkNode="attacherJoint"/>

        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="leftArm" playSound="true" wheelIndices="3">
                <dependentPart node="leftArmHydraulic" />
            </movingTool>
            <movingTool node="rightArm" playSound="true" wheelIndices="4">
                <dependentPart node="rightArmHydraulic" />
            </movingTool>
            <movingTool node="leftArmLockArm" playSound="true">
                <dependentPart node="leftArmLockArmHydraulic" />
            </movingTool>
            <movingTool node="rightArmLockArm" playSound="true">
                <dependentPart node="rightArmLockArmHydraulic" />
            </movingTool>
            <movingTool node="safetyBarLeftPart01" playSound="true">
                <dependentPart node="safetyBarLeftPart02" />
            </movingTool>
            <movingTool node="safetyBarRightPart01" playSound="true">
                <dependentPart node="safetyBarRightPart02" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="leftArmHydraulic" referencePoint="leftArmHydraulicRef" referenceFrame="leftArmHydraulicRefFrame">
                <translatingPart node="leftArmHydraulicPunch" />
            </movingPart>
            <movingPart node="rightArmHydraulic" referencePoint="rightArmHydraulicRef" referenceFrame="rightArmHydraulicRefFrame">
                <translatingPart node="rightArmHydraulicPunch" />
            </movingPart>
            <movingPart node="leftArmLockArmHydraulic" referencePoint="leftArmLockArmHydraulicRef" referenceFrame="leftArmLockArmHydraulicRef">
                <translatingPart node="leftArmLockArmHydraulicPunch" />
            </movingPart>
            <movingPart node="rightArmLockArmHydraulic" referencePoint="rightArmLockArmHydraulicRef" referenceFrame="rightArmLockArmHydraulicRef">
                <translatingPart node="rightArmLockArmHydraulicPunch" />
            </movingPart>
            <movingPart node="safetyBarLeftPart02" localReferencePoint="safetyBarLeftPart03" referencePoint="safetyBarLeftPart03Ref" referenceFrame="safetyBarLeftPart02RefFrame">
                <dependentPart node="safetyBarLeftPart03" />
                <dependentPart node="safetyBarLeftPart01Hydraulic" />
            </movingPart>
            <movingPart node="safetyBarLeftPart03" referencePoint="safetyBarLeftPart03Ref" referenceFrame="safetyBarLeftPart03Ref"/>
            <movingPart node="safetyBarLeftPart01Hydraulic" referencePoint="safetyBarLeftPart01HydraulicRef" referenceFrame="safetyBarLeftPart01HydraulicRef">
                <translatingPart node="safetyBarLeftPart01HydraulicPunch" />
            </movingPart>
            <movingPart node="safetyBarRightPart02" localReferencePoint="safetyBarRightPart03" referencePoint="safetyBarRightPart03Ref" referenceFrame="safetyBarRightPart02RefFrame">
                <dependentPart node="safetyBarRightPart03" />
                <dependentPart node="safetyBarRightPart01Hydraulic" />
            </movingPart>
            <movingPart node="safetyBarRightPart03" referencePoint="safetyBarRightPart03Ref" referenceFrame="safetyBarRightPart03Ref"/>
            <movingPart node="safetyBarRightPart01Hydraulic" referencePoint="safetyBarRightPart01HydraulicRef" referenceFrame="safetyBarRightPart01HydraulicRef">
                <translatingPart node="safetyBarRightPart01HydraulicPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="slurryTank" capacity="0"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack"/>
        <collisionTrigger node="aiCollisionNode" width="6.8" height="2.6"/>
        <agentAttachment width="2.8" height="3.5" length="1.6" lengthOffset="-0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.0" maxX="1.0" minZ="-0.65" maxZ="0.4" yOffset="0.3" />
        <bendingNode minX="0.24" maxX="2.65" minZ="-0.8" maxZ="0.2" yOffset="-0.4" node="leftArm" />
        <bendingNode minX="-0.24" maxX="-2.65" minZ="-0.8" maxZ="0.2" yOffset="-0.4" node="rightArm" />
    </foliageBending>

    <baseMaterial>
        <material name="sp6834_mat" baseNode="sp6834_vis">
            <shaderParameter name="colorMat0" value="SCHOUTEN_ORANGE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="sp6834_main_component1" node="0>" />
        <i3dMapping id="sp6834_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topRefNode" node="0>0|0|1" />
        <i3dMapping id="supportArm01" node="0>0|0|2|0" />
        <i3dMapping id="supportArm02" node="0>0|0|2|1" />
        <i3dMapping id="supportCol" node="0>0|0|2|2" />
        <i3dMapping id="electric_detached" node="0>0|0|3|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|3|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|3|2" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|3|3" />
        <i3dMapping id="electric" node="0>0|0|3|4" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|3|5" />
        <i3dMapping id="topRightPipe" node="0>0|0|3|6" />
        <i3dMapping id="extraWheel01" node="0>0|1|0" />
        <i3dMapping id="extraWheel02" node="0>0|1|1" />
        <i3dMapping id="sideMarker06_left_static" node="0>0|2|0|0" />
        <i3dMapping id="sideMarker06_right_static" node="0>0|2|0|1" />
        <i3dMapping id="bigTriangle" node="0>0|2|0|2" />
        <i3dMapping id="turnlightLeftStaticGlass" node="0>0|2|1|0" />
        <i3dMapping id="turnlightRightStaticGlass" node="0>0|2|1|1" />
        <i3dMapping id="backlightStaticGlass" node="0>0|2|1|2" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|3|1" />
        <i3dMapping id="workAreaStart" node="0>0|3|0" />
        <i3dMapping id="workAreaWidth" node="0>0|3|1" />
        <i3dMapping id="workAreaHeight" node="0>0|3|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|3|3" />
        <i3dMapping id="depthNode" node="0>0|3|4" />
        <i3dMapping id="aiMarkerLeft" node="0>0|4|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|4|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|4|2" />
        <i3dMapping id="sizeMarkerLeft" node="0>0|4|3" />
        <i3dMapping id="sizeMarkerRight" node="0>0|4|4" />
        <i3dMapping id="sizeMarkerBack" node="0>0|4|5" />
        <i3dMapping id="aiCollisionNode" node="0>0|4|6" />
        <i3dMapping id="leftArm" node="0>0|5|0" />
        <i3dMapping id="wheel01" node="0>0|5|0|0" />
        <i3dMapping id="leftArmHydraulicRef" node="0>0|5|0|1" />
        <i3dMapping id="disc01" node="0>0|5|0|2" />
        <i3dMapping id="safetyBarLeftPart01" node="0>0|5|0|6" />
        <i3dMapping id="safetyBarLeftPart02RefFrame" node="0>0|5|0|6|0" />
        <i3dMapping id="safetyBarLeftPart02" node="0>0|5|0|6|0|0" />
        <i3dMapping id="safetyBarLeftPart03" node="0>0|5|0|6|0|0|0" />
        <i3dMapping id="safetyBarLeftPart01HydraulicRef" node="0>0|5|0|6|1" />
        <i3dMapping id="safetyBarLeftPart01Hydraulic" node="0>0|5|0|7" />
        <i3dMapping id="safetyBarLeftPart01HydraulicPunch" node="0>0|5|0|7|0" />
        <i3dMapping id="safetyBarLeftPart03Ref" node="0>0|5|0|8" />
        <i3dMapping id="rightArm" node="0>0|5|1" />
        <i3dMapping id="wheel03" node="0>0|5|1|0" />
        <i3dMapping id="rightArmHydraulicRef" node="0>0|5|1|1" />
        <i3dMapping id="disc03" node="0>0|5|1|2" />
        <i3dMapping id="safetyBarRightPart01" node="0>0|5|1|6" />
        <i3dMapping id="safetyBarRightPart02RefFrame" node="0>0|5|1|6|0" />
        <i3dMapping id="safetyBarRightPart02" node="0>0|5|1|6|0|0" />
        <i3dMapping id="safetyBarRightPart03" node="0>0|5|1|6|0|0|0" />
        <i3dMapping id="safetyBarRightPart01HydraulicRef" node="0>0|5|1|6|2" />
        <i3dMapping id="safetyBarRightPart01Hydraulic" node="0>0|5|1|7" />
        <i3dMapping id="safetyBarRightPart01HydraulicPunch" node="0>0|5|1|7|0" />
        <i3dMapping id="safetyBarRightPart03Ref" node="0>0|5|1|8" />
        <i3dMapping id="leftArmHydraulicRefFrame" node="0>0|5|2" />
        <i3dMapping id="leftArmHydraulic" node="0>0|5|2|0" />
        <i3dMapping id="leftArmHydraulicPunch" node="0>0|5|2|0|0" />
        <i3dMapping id="rightArmHydraulicRefFrame" node="0>0|5|3" />
        <i3dMapping id="rightArmHydraulic" node="0>0|5|3|0" />
        <i3dMapping id="rightArmHydraulicPunch" node="0>0|5|3|0|0" />
        <i3dMapping id="leftArmLockArm" node="0>0|5|4" />
        <i3dMapping id="leftArmLockArmHydraulicRef" node="0>0|5|4|0" />
        <i3dMapping id="rightArmLockArm" node="0>0|5|5" />
        <i3dMapping id="rightArmLockArmHydraulicRef" node="0>0|5|5|0" />
        <i3dMapping id="leftArmLockArmHydraulic" node="0>0|5|6" />
        <i3dMapping id="leftArmLockArmHydraulicPunch" node="0>0|5|6|0" />
        <i3dMapping id="rightArmLockArmHydraulic" node="0>0|5|7" />
        <i3dMapping id="rightArmLockArmHydraulicPunch" node="0>0|5|7|0" />
        <i3dMapping id="smokeEmitter" node="0>0|6|0" />
        <i3dMapping id="effectSlurry" node="0>0|6|1" />
        <i3dMapping id="discEffect01LinkNode" node="0>0|6|2" />
        <i3dMapping id="disc02" node="0>0|7|1" />
        <i3dMapping id="connector" node="0>0|7|8" />
    </i3dMappings>
</vehicle>
