﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fillableImplement" 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>Solitair 23</name>
        <specs>
            <combination xmlFilename="$data/vehicles/lemken/azurit9/azurit9.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_additionalTank</function>
        </functions>
        <storePacks>
            <storePack>STARTER_SUGARBEET</storePack>
        </storePacks>
        <image>$data/vehicles/lemken/solitair23/store_solitair23.png</image>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LEMKEN</brand>
        <category>planters</category>
        <shopHeight>3</shopHeight>
        <vertexBufferMemoryUsage>1524736</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>279808</indexBufferMemoryUsage>
        <textureMemoryUsage>2490368</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_sprayerTank</typeDesc>
        <filename>$data/vehicles/lemken/solitair23/solitair23.i3d</filename>
        <size width="3" length="2" lengthOffset="0"/>
        <components>
            <component centerOfMass="0 0.5 0" solverIterationCount="20" mass="800" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotationOffset="-3" lowerRotLimitScale="0 0 0" upperRotationOffset="-3" >
                <distanceToGround lower="0.7" upper="0.85" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <lights>
        <sharedLight linkNode="frontlightLeft"  filename="$data/shared/assets/lights/lizard/frontLight05_right.xml" />
        <sharedLight linkNode="frontlightRight" filename="$data/shared/assets/lights/lizard/frontLight05_left.xml" />
        <sharedLight linkNode="workingLight01"  filename="$data/shared/assets/lights/lizard/workingLight04.xml" />
        <sharedLight linkNode="workingLight02"  filename="$data/shared/assets/lights/lizard/workingLight04.xml" />
        <sharedLight linkNode="workingLight03"  filename="$data/shared/assets/lights/lizard/workingLight04.xml" />
        <sharedLight linkNode="workingLight04"  filename="$data/shared/assets/lights/lizard/workingLight04.xml" />
        <sharedLight linkNode="sideMarker01"    filename="$data/shared/assets/lights/lizard/sideMarker08Orange_left.xml" />
        <sharedLight linkNode="sideMarker02"    filename="$data/shared/assets/lights/lizard/sideMarker08Orange_right.xml" />

        <realLights>
            <high>
                <light node="frontLightHigh" lightTypes="0 2"/>
                <turnLightLeft node="turnLightLeftFront"/>
                <turnLightRight node="turnLightRightFront"/>
            </high>
        </realLights>
    </lights>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn" adapterNode="hydraulicIn_connector" length="1" diameter="0.02">
            <objectChange node="hydraulicIn_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut" adapterNode="hydraulicOut_connector" length="1" diameter="0.02" >
            <objectChange node="hydraulicOut_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" adapterNode="electric_connector" length="1.2" diameter="0.01">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>

        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_BOTTOM_01" node="seedHose01" length="1.2" diameter="0.066">
            <objectChange node="seedHose01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_BOTTOM_02" node="seedHose02" length="1.2" diameter="0.066">
            <objectChange node="seedHose02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_BOTTOM_03" node="seedHose03" length="1.2" diameter="0.066">
            <objectChange node="seedHose03_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_BOTTOM_04" node="seedHose04" length="1.2" diameter="0.066">
            <objectChange node="seedHose04_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <sprayer allowsSpraying="false" fillUnitIndex="1"/>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <unloading width="7" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SPREADER" capacity="2000">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxAllowedHeapAngle="15" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="fillUnloadNode" width="2" length="0.4" />
            </unloadInfo>
        </unloadInfos>

        <loadInfos>
            <loadInfo>
                <node node="fillLoadNode" width="2" length="0.4" />
            </loadInfo>
        </loadInfos>
    </fillVolume>

    <cylindered>
        <movingTools>
            <movingTool node="coverRef">
                <dependentPart node="cover" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="cover" localReferencePoint="coverOrientationArm" referencePoint="coverRef" referenceFrame="coverRefFrame">
                <dependentPart node="coverOrientationArm" />
            </movingPart>
            <movingPart node="coverOrientationArm" referencePoint="coverRef" referenceFrame="coverRef"/>
        </movingParts>
        <sounds>
            <hydraulic template="defaultHydraulicSound"/>
        </sounds>
    </cylindered>

    <animations>
        <animation name="toggleCover">
            <part node="coverRef"  startTime="0"   endTime="2"   startTrans="0 1.753 0.336"  endTrans="0 1.825 -0.244" />
            <part node="coverRef"  startTime="2"   endTime="2.5" startTrans="0 1.825 -0.244" endTrans="0 1.795 -0.264" />
            <part node="frontStep" startTime="2.5" endTime="4"   startRot="0 0 0"            endRot="-90 0 0" />

            <sound template="coverMetalOpen" startTime="0.01" direction="1" volumeScale="1" pitchScale="0.5" />
            <sound template="clackVar5" startTime="3.9" direction="1" volumeScale="1" pitchScale="2" />
            <sound template="clackVar1" startTime="3.99" direction="-1" volumeScale="1" pitchScale="3" />
            <sound template="clackVar4" startTime="2.5" direction="-1" volumeScale="1" pitchScale="2" />
            <sound template="hingeSmall" startTime="1.5" direction="-1" volumeScale="0.2" pitchScale="2" />
            <sound template="clackVar4" startTime="0.01" direction="-1" volumeScale="1" pitchScale="1.4" />
        </animation>
        <animation name="moveSupport">
            <part node="supportAttached" startTime="0" endTime="0.1" visibility="false"/>
            <part node="supportAttached" startTime="0.0" endTime="0" visibility="true"/>
            <part node="supportDetached" startTime="0" endTime="0.1" visibility="true"/>
            <part node="supportDetached" startTime="0.0" endTime="0" visibility="false"/>
            <part node="supportCollisions" startTime="0" endTime="0.1" startTrans="0 0.3 0" endTrans="0 0 0" />

            <sound template="clackVar5" startTime="0.1" direction="-1" volumeScale="0.9" pitchScale="1.6" linkNode="attacherJoint"/>
            <sound template="latchSmall" startTime="0.1" direction="-1" volumeScale="0.2" pitchScale="1.6" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.1" direction="1" volumeScale="1.2" pitchScale="1.6" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cover>
        <coverConfigurations>
            <coverConfiguration >
                <cover openAnimation="toggleCover" fillUnitIndices="1" />
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <ai>
        <agentAttachment width="2.5" height="2" length="1.7" lengthOffset="0.05"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.7" maxZ="1.0" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="solitair23_mat" baseNode="solitair23_vis">
            <shaderParameter name="colorMat0" value="LEMKEN_BLUE1"/>
            <shaderParameter name="colorMat1" value="LEMKEN_RED1"/>
            <shaderParameter name="colorMat3" value="LEMKEN_BLUE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|0" />
        <i3dMapping id="electric" node="0>0|0|1|0" />
        <i3dMapping id="electric_detached" node="0>0|0|1|0|0" />
        <i3dMapping id="electric_connector" node="0>0|0|1|0|0|0" />
        <i3dMapping id="hydraulicIn" node="0>0|0|1|1" />
        <i3dMapping id="hydraulicIn_detached" node="0>0|0|1|1|0" />
        <i3dMapping id="hydraulicIn_connector" node="0>0|0|1|1|0|0" />
        <i3dMapping id="hydraulicOut" node="0>0|0|1|2" />
        <i3dMapping id="hydraulicOut_detached" node="0>0|0|1|2|0" />
        <i3dMapping id="hydraulicOut_connector" node="0>0|0|1|2|0|0" />
        <i3dMapping id="seedHose01" node="0>0|0|1|3" />
        <i3dMapping id="seedHose01_detached" node="0>0|0|1|3|0" />
        <i3dMapping id="seedHose02" node="0>0|0|1|4" />
        <i3dMapping id="seedHose02_detached" node="0>0|0|1|4|0" />
        <i3dMapping id="seedHose03" node="0>0|0|1|5" />
        <i3dMapping id="seedHose03_detached" node="0>0|0|1|5|0" />
        <i3dMapping id="seedHose04" node="0>0|0|1|6" />
        <i3dMapping id="seedHose04_detached" node="0>0|0|1|6|0" />
        <i3dMapping id="supportCollisions" node="0>0|1|0" />
        <i3dMapping id="supportDetached" node="0>0|1|1" />
        <i3dMapping id="supportAttached" node="0>0|1|2" />
        <i3dMapping id="frontlightLeft" node="0>0|2|0|0" />
        <i3dMapping id="frontlightRight" node="0>0|2|0|1" />
        <i3dMapping id="workingLight01" node="0>0|2|0|2" />
        <i3dMapping id="workingLight02" node="0>0|2|0|3" />
        <i3dMapping id="workingLight03" node="0>0|2|0|4" />
        <i3dMapping id="workingLight04" node="0>0|2|0|5" />
        <i3dMapping id="sideMarker01" node="0>0|2|0|6" />
        <i3dMapping id="sideMarker02" node="0>0|2|0|7" />
        <i3dMapping id="frontLightHigh" node="0>0|2|1" />
        <i3dMapping id="frontLightHigh2" node="0>0|2|1|0" />
        <i3dMapping id="turnLightLeftFront" node="0>0|2|2" />
        <i3dMapping id="turnLightRightFront" node="0>0|2|3" />
        <i3dMapping id="frontStep" node="0>0|3|0" />
        <i3dMapping id="cover" node="0>0|3|1" />
        <i3dMapping id="coverOrientationArm" node="0>0|3|1|0" />
        <i3dMapping id="coverRef" node="0>0|3|2" />
        <i3dMapping id="coverRefFrame" node="0>0|3|3" />
        <i3dMapping id="fillVolume" node="0>0|4|0" />
        <i3dMapping id="fillLoadNode" node="0>0|4|1" />
        <i3dMapping id="fillUnloadNode" node="0>0|4|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|4|3" />
        <i3dMapping id="solitair23_vis" node="0>0|5|4|0" />
    </i3dMappings>
</vehicle>
