﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fertilizingCultivator" 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>SD 700</name>
        <specs>
            <neededPower>140</neededPower>
            <workingWidth>7.0</workingWidth>
            <combination xmlFilename="$data/vehicles/samsonAgro/pgII35m/pgII35m.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreaderTool</function>
            <function>$l10n_function_cultivator</function>
        </functions>
        <image>$data/vehicles/samsonAgro/sd700/store_sd700.png</image>
        <price>46000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SAMSONAGRO</brand>
        <category>slurryTanks</category>
        <shopTranslationOffset>0 0.058 0</shopTranslationOffset>
        <shopHeight>5</shopHeight>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2379776</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>405248</indexBufferMemoryUsage>
        <textureMemoryUsage>2031616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureDistributor</typeDesc>
        <filename>$data/vehicles/samsonAgro/sd700/sd700.i3d</filename>
        <speedLimit value="16" />
        <size width="4" length="3.8"/>
        <components>
            <component centerOfMass="0 0.3 -0.25" solverIterationCount="10" mass="3600" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels hasSurfaceSounds="false">
                    <wheel>
                        <physics rotSpeed="0" restLoad="1.4" repr="leftArmSupportWheel"  forcePointRatio="0.5" radius="0.25" width="3.25" mass="0.2" initialCompression="50" suspTravel="0.05" spring="46" damper="50" rotationDamping="0.01" useReprDirection="true" supportsWheelSink="true"/>
                    </wheel>
                    <wheel>
                        <physics rotSpeed="0" restLoad="1.4" repr="rightArmSupportWheel" forcePointRatio="0.5" radius="0.25" width="3.25" mass="0.2" initialCompression="50" suspTravel="0.05" spring="46" damper="50" rotationDamping="0.01" useReprDirection="true" supportsWheelSink="true"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="leftArmRoller"  radius="0.31" wheelIndex="1" />
        <speedRotatingPart node="rightArmRoller" radius="0.31" wheelIndex="2" />

        <speedRotatingPart shaderNode="leftArmDiscs_inside"   radius="0.26" foldMinLimit="0" foldMaxLimit="0.03" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="leftArmDiscs_outside"  radius="0.26" foldMinLimit="0" foldMaxLimit="0.03" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="rightArmDiscs_inside"  radius="0.26" foldMinLimit="0" foldMaxLimit="0.03" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="rightArmDiscs_outside" radius="0.26" foldMinLimit="0" foldMaxLimit="0.03" groundReferenceNodeIndex="1" />
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode">
                <distanceToGround lower="0.6" upper="1.1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" node="topRightPipe" length="1" diameter="0.17" isTwoPointHose="true">
            <objectChange node="topRightPipe_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>

        <hose inputAttacherJointIndices="1" type="electric"  node="electric"  length="1.3" diameter="0.008" straighteningFactor="1">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02"  length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut02" length="1.3" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicOut02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electric_connector"       filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_connector"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_connector"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut02_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <powerConsumer forceNode="sd700_main_component1" maxForce="15" />

    <lights>
        <sharedLight linkNode="backlightLeft01"    filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="backlightLeft02"    filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="backlightRight01"   filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
        <sharedLight linkNode="backlightRight02"   filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
        <sharedLight linkNode="sideMarker01"       filename="$data/shared/assets/lights/lizard/sideMarker03_left.xml" />
        <sharedLight linkNode="sideMarker02"       filename="$data/shared/assets/lights/lizard/sideMarker03_right.xml" />
        <sharedLight linkNode="plateNumberLight01" filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" />
        <sharedLight linkNode="sideMarkerRed01"    filename="$data/shared/assets/reflectors/lizard/redRound_01.xml" />
        <sharedLight linkNode="sideMarkerRed02"    filename="$data/shared/assets/reflectors/lizard/redRound_01.xml" />
        <sharedLight linkNode="sideMarkerOrange01" filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="sideMarkerOrange02" filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="triangle01"         filename="$data/shared/assets/reflectors/lizard/redTriangle_01.xml" />
        <sharedLight linkNode="triangle02"         filename="$data/shared/assets/reflectors/lizard/redTriangle_01.xml" />
        <sharedLight linkNode="bigTriangle"        filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1"       lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.09 0.15 0.12 0.15"/>
    </licensePlates>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.25" depthNode="groundReferenceNode"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" needsSetIsTurnedOn="false" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <folding minLimit="0" maxLimit="0.1" />
            <onlyActiveWhenLowered value="false" />
        </workArea>
    </workAreas>

    <workParticles>
        <effect workAreaIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="discEffect01LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/samsonAgro/sd700/discEffect01Array.dds" numRows="60" rowLength="18" minFade="0.07"/>
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="discEffect02LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/samsonAgro/sd700/discEffect02Array.dds" numRows="60" rowLength="18" minFade="0.07"/>
            </effectNode>
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="rollerEffect01LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/samsonAgro/sd700/rollerEffect01Array.dds" numRows="40" rowLength="18" minFade="0.07" density="0.75" densityScale="0.35"/>
            </effectNode>
        </effect>

        <effect workAreaIndex="1" needsSetIsTurnedOn="true">
            <effectNode effectNode="effectSlurry" materialType="slurry" delay="0" dynamicFillType="false"/>
        </effect>

        <particle>
            <node node="effectParticleSmokeEmit" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="2.5"/>
        </particle>
    </workParticles>

    <sprayer activateOnLowering="true" activateTankOnLowering="true">
        <usageScales workingWidth="7.0" scale="1" />
    </sprayer>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02">
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="leftArm"            startTime="0"    endTime="4.5"    startRot="0 0 0"    endRot="0 0 90"/>
            <part node="rightArm"           startTime="0.4"    endTime="5"    startRot="0 0 0"    endRot="0 0 -90"/>
            <part node="lockArm"            startTime="5"    endTime="5.2"  startRot="-15 0 0"  endRot="0 0 0"/>

            <part node="animationBoneLeft"  startTime="0" endTime="3"  startTrans="0.81 1.451 1.196"   endTrans="-0.057 0.144 1.196" />
            <part node="animationBoneRight" startTime="1" endTime="5"  startTrans="-0.811 1.451 1.196" endTrans="0.057 0.144 1.196" />

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="4.5"  volumeScale="1.1" pitchScale="0.6" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="defaultHydraulicSound" startTime="0.4"  endTime="4.99" volumeScale="1.1" pitchScale="0.8" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="sheetImp02"            startTime="4.99" direction="-1" volumeScale="2.5" pitchScale="0.7" />
            <sound template="clackVar6"             startTime="4.99" direction="-1" volumeScale="1.2" pitchScale="0.7" />
            <sound template="foldStartMed02"        startTime="4.6"  direction="-1" volumeScale="2.3" pitchScale="0.7" />
            <sound template="clackVar4"             startTime="4.6"  direction="-1" volumeScale="0.7" pitchScale="0.7" />
            <sound template="clackVar1"             startTime="0.4"  direction="-1" volumeScale="1.1" pitchScale="0.7" />
            <sound template="sheetImp02"            startTime="0.4"  direction="-1" volumeScale="1.9" pitchScale="0.7" />
            <sound template="clackVar4"             startTime="0.3"  direction="-1" volumeScale="1.6" pitchScale="0.7" />
            <sound template="clackVar6"             startTime="0.1"  direction="-1" volumeScale="1.1" pitchScale="0.7" />
            <sound template="foldStartMed02"        startTime="0.01" direction="1"  volumeScale="1.6" pitchScale="0.7" />
            <sound template="clackVar6"             startTime="0.4"  direction="1"  volumeScale="0.6" pitchScale="0.7" />
            <sound template="sheetImp02"            startTime="0.4"  direction="1"  volumeScale="1.6" pitchScale="0.7" />
            <sound template="foldStopSm01"          startTime="4.2"  direction="1"  volumeScale="1.1" pitchScale="0.5" />
            <sound template="clackVar6"             startTime="4.99" direction="1"  volumeScale="1.1" pitchScale="0.8" />
            <sound template="clackVar4"             startTime="4.9"  direction="1"  volumeScale="1.7" pitchScale="0.7" />
        </animation>
        <animation name="moveSupport">
            <part node="supportLeftCol"  startTime="0.0" endTime="0.01" startTrans="0.135 0.7 0.835" endTrans="0 0.27 0.835" />
            <part node="supportRightCol" startTime="0.0" endTime="0.01" startTrans="0.091 0.7 0.835" endTrans="0.091 0.27 0.835" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="leftArm" playSound="true" wheelIndices="1">
                <dependentPart node="leftArmHydraulic" />
            </movingTool>
            <movingTool node="rightArm" playSound="true" wheelIndices="2">
                <dependentPart node="rightArmHydraulic" />
            </movingTool>
            <movingTool node="lockArm" playSound="true">
                <dependentPart node="lockArmHydraulic" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="leftArmHydraulic" referencePoint="leftArmHydraulicRef" referenceFrame="leftArmHydraulicRef">
                <translatingPart node="leftArmHydraulicPunch" />
            </movingPart>
            <movingPart node="rightArmHydraulic" referencePoint="rightArmHydraulicRef" referenceFrame="rightArmHydraulicRef">
                <translatingPart node="rightArmHydraulicPunch" />
            </movingPart>
            <movingPart node="lockArmHydraulic" referencePoint="lockArmHydraulicRef" referenceFrame="lockArmHydraulicRef">
                <translatingPart node="lockArmHydraulicPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="slurryTank" capacity="0" />
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <cultivator useDeepMode="false">
        <directionNode node="0>" />
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="0>" />
        </sounds>
    </cultivator>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="7.8" height="3.6"/>
        <agentAttachment width="3" height="3.8" length="3" lengthOffset="-0.15"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.55" maxX="1.55" minZ="-1.9" maxZ="1.15" yOffset="0.6" />
        <bendingNode minX="0.78" maxX="2.95" minZ="-1.6" maxZ="1" yOffset="-0.1" node="leftArm"/>
        <bendingNode minX="-2.95" maxX="-0.78" minZ="-1.6" maxZ="1" yOffset="-0.1" node="rightArm"/>
    </foliageBending>

    <baseMaterial>
        <material name="sd700_mat" baseNode="sd700_vis">
            <shaderParameter name="colorMat0" value="SAMSONAGRO_GREEN"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="sd700_main_component1" node="0>" />
        <i3dMapping id="sd700_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|2|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|2|1|0|0" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|2|2|0" />
        <i3dMapping id="hydraulicIn02_connector" node="0>0|0|2|2|0|0" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|2|3" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|2|3|0" />
        <i3dMapping id="hydraulicOut02_connector" node="0>0|0|2|3|0|0" />
        <i3dMapping id="electric" node="0>0|0|2|4" />
        <i3dMapping id="electric_detached" node="0>0|0|2|4|0" />
        <i3dMapping id="electric_connector" node="0>0|0|2|4|0|0" />
        <i3dMapping id="topRightPipe" node="0>0|0|2|5" />
        <i3dMapping id="topRightPipe_detached" node="0>0|0|2|5|0" />
        <i3dMapping id="bigTriangle" node="0>0|1|0|0" />
        <i3dMapping id="backlightLeft01" node="0>0|1|0|1" />
        <i3dMapping id="backlightLeft02" node="0>0|1|0|2" />
        <i3dMapping id="backlightRight01" node="0>0|1|0|3" />
        <i3dMapping id="backlightRight02" node="0>0|1|0|4" />
        <i3dMapping id="sideMarker01" node="0>0|1|0|5" />
        <i3dMapping id="sideMarker02" node="0>0|1|0|6" />
        <i3dMapping id="triangle01" node="0>0|1|0|7" />
        <i3dMapping id="triangle02" node="0>0|1|0|8" />
        <i3dMapping id="sideMarkerOrange01" node="0>0|1|0|9" />
        <i3dMapping id="sideMarkerOrange02" node="0>0|1|0|10" />
        <i3dMapping id="sideMarkerRed01" node="0>0|1|0|11" />
        <i3dMapping id="sideMarkerRed02" node="0>0|1|0|12" />
        <i3dMapping id="plateNumberLight01" node="0>0|1|0|13" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|1" />
        <i3dMapping id="backLightsHigh1" node="0>0|1|2" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|3" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|4" />
        <i3dMapping id="leftArm" node="0>0|2|0" />
        <i3dMapping id="leftArmDiscs_inside" node="0>0|2|0|0|0" />
        <i3dMapping id="leftArmDiscs_outside" node="0>0|2|0|0|1" />
        <i3dMapping id="leftArmSupportWheel" node="0>0|2|0|1" />
        <i3dMapping id="leftArmRoller" node="0>0|2|0|2" />
        <i3dMapping id="leftArmHydraulicRef" node="0>0|2|0|3" />
        <i3dMapping id="supportLeftCol" node="0>0|2|0|5|0" />
        <i3dMapping id="animationBoneLeft" node="0>0|2|0|8" />
        <i3dMapping id="leftArmHydraulic" node="0>0|2|1" />
        <i3dMapping id="leftArmHydraulicPunch" node="0>0|2|1|0" />
        <i3dMapping id="rightArm" node="0>0|2|2" />
        <i3dMapping id="rightArmDiscs_inside" node="0>0|2|2|0|0" />
        <i3dMapping id="rightArmDiscs_outside" node="0>0|2|2|0|1" />
        <i3dMapping id="rightArmSupportWheel" node="0>0|2|2|1" />
        <i3dMapping id="rightArmRoller" node="0>0|2|2|2" />
        <i3dMapping id="rightArmHydraulicRef" node="0>0|2|2|3" />
        <i3dMapping id="supportRightCol" node="0>0|2|2|4|0" />
        <i3dMapping id="lockArm" node="0>0|2|2|7" />
        <i3dMapping id="lockArmHydraulicRef" node="0>0|2|2|7|0" />
        <i3dMapping id="lockArmHydraulic" node="0>0|2|2|8" />
        <i3dMapping id="lockArmHydraulicPunch" node="0>0|2|2|8|0" />
        <i3dMapping id="animationBoneRight" node="0>0|2|2|10" />
        <i3dMapping id="rightArmHydraulic" node="0>0|2|3" />
        <i3dMapping id="rightArmHydraulicPunch" node="0>0|2|3|0" />
        <i3dMapping id="licensePlateBack" node="0>0|3" />
        <i3dMapping id="workAreaStart" node="0>0|4|0" />
        <i3dMapping id="workAreaWidth" node="0>0|4|1" />
        <i3dMapping id="workAreaHeight" node="0>0|4|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|4|3" />
        <i3dMapping id="rollerEffect01LinkNode" node="0>0|5|0" />
        <i3dMapping id="discEffect01LinkNode" node="0>0|5|1" />
        <i3dMapping id="discEffect02LinkNode" node="0>0|5|2" />
        <i3dMapping id="effectParticleSmokeEmit" node="0>0|5|3" />
        <i3dMapping id="effectSlurry" node="0>0|5|4" />
        <i3dMapping id="aiMarkerLeft" node="0>0|6|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|6|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|6|0|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|6|1" />
    </i3dMappings>
</vehicle>
