﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="seedingRoller" 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>GK 300 M1 Full Edition</name>
        <specs>
            <neededPower>90</neededPower>
            <workingWidth>3.0</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="600" filterSpecMax="600"/>
        </specs>
        <functions>
            <function>$l10n_function_grasslandCare</function>
        </functions>
        <image>$data/vehicles/apv/gk300m/store_gk300m.png</image>
        <price>13500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>APV</brand>
        <category>grasslandCare</category>
        <shopTranslationOffset>0 -0.008 0</shopTranslationOffset>
        <shopRotationOffset>0.667 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1644544</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>287232</indexBufferMemoryUsage>
        <textureMemoryUsage>2228224</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_weeder</typeDesc>
        <filename>$data/vehicles/apv/gk300m/gk300m.i3d</filename>
        <size width="3.5" length="2.5" lengthOffset="0.05"/>
        <speedLimit value="12"/>
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="1150" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="true">
                    <wheel>
                        <physics restLoad="0.4" repr="wheelLeft"  width="0.2" radius="0.23" forcePointRatio="0.2" initialCompression="20" suspTravel="0.05" spring="26" damper="15" rotationDamping="0.002"/>
                    </wheel>
                    <wheel>
                        <physics restLoad="0.4" repr="wheelRight" width="0.2" radius="0.23" forcePointRatio="0.2" initialCompression="20" suspTravel="0.05" spring="26" damper="15" rotationDamping="0.002"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotationOffset="10" upperRotationOffset="5" lowerRotLimitScale="0 0 0.6" lowerTransLimitScale="0 1 0">
                <distanceToGround lower="0.35" upper="0.8"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <brakeForce force="0.05"/>
        <support animationName="moveSupport" />
    </attachable>

    <speedRotatingParts>
        <speedRotatingPart node="discs01" radius="0.23" wheelIndex="1" groundReferenceNodeIndex="1"/>
        <speedRotatingPart node="discs02" radius="0.23" wheelIndex="2" groundReferenceNodeIndex="1"/>
    </speedRotatingParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.4" diameter="0.011" straighteningFactor="0.5">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.4" diameter="0.011" straighteningFactor="0.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" adapterNode="electric_detached" length="1.8" diameter="0.007" minDeltaY="0.03">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <powerConsumer forceNode="gm300m_main_component1" maxForce="8"/>

    <lights>
        <sharedLight linkNode="rearLight05_left"   filename="$data/shared/assets/lights/lizard/rearLight05_left.xml" />
        <sharedLight linkNode="rearLight05_right"  filename="$data/shared/assets/lights/lizard/rearLight05_right.xml" />
        <sharedLight linkNode="frontLight02"       filename="$data/shared/assets/lights/lizard/frontLight02.xml" />
        <sharedLight linkNode="frontLight03"       filename="$data/shared/assets/lights/lizard/frontLight02.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
    </lights>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.1"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="roller" functionName="processRollerArea" needsSetIsTurnedOn="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight"/>
            <groundReferenceNode index="1"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>
        <workArea type="sowingMachine" functionName="processSowingMachineArea" requiresGroundContact="true" needsSetIsTurnedOn="true">
            <area startNode="areaStart" widthNode="areaWidth" heightNode="areaHeight" />
            <groundReferenceNode index="1" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <workParticles>
        <effect workAreaIndex="2">
            <effectNode effectNode="effectUnload" delay="0" materialType="unloading" fadeTime="1" defaultFillType="seeds" uvSpeed="0.25"/>
        </effect>
        <particle>
            <node node="smokeEmitter" refNodeIndex="1" particleType="SOIL_SMOKE" adjustColor="true"/>
            <node node="smokeEmitter" refNodeIndex="1" particleType="weederGrass" adjustColor="true" emitCountScale="2"/>
        </particle>
    </workParticles>

    <animations>
        <animation name="moveSupport">
            <part node="supportCol"          startTime="0" endTime="0.4" startTrans="0 0.3 -0.3" endTrans="0 0 0"/>
            <part node="supportArm_detached" startTime="0.00" endTime="0.05" visibility="false" />
            <part node="supportArm_attached" startTime="0.00" endTime="0.05" visibility="true" />
            <part node="supportArm_detached" startTime="0.05" endTime="0.10" visibility="true" />
            <part node="supportArm_attached" startTime="0.05" endTime="0.10" visibility="false" />

            <sound template="clackVar6" startTime="0.39" direction="-1" volumeScale="1.1" pitchScale="1"   linkNode="attacherJoint"/>
            <sound template="clackVar4" startTime="0.09"                volumeScale="1.1" pitchScale="2.5" linkNode="attacherJoint"/>
        </animation>
        <animation name="toggleCover">
            <part node="cover" startTime="0.00" endTime="0.05" visibility="true" />
            <part node="cover" startTime="0.05" endTime="0.10" visibility="false" />
            <part node="ladder" startTime="0" endTime="0.5" startRot="201 0 0" endRot="0 0 0"/>

            <sound template="palletsFillPlastic" startTime="0.01"                volumeScale="1.8" pitchScale="1"/>
            <sound template="clackVar4"          startTime="0.01" direction="-1" volumeScale="1.1" pitchScale="2.5"/>
            <sound template="clackVar4"          startTime="0.49" direction="1"  volumeScale="1.1" pitchScale="2.5"/>
        </animation>
    </animations>

    <jigglingParts>
        <jigglingPart node="tines" speedScale="2" amplitudeScale="1" shaderParameter="amplFreq" shaderParameterComponentSpeed="4" shaderParameterComponentAmplitude="1" refNodeIndex="1" />
    </jigglingParts>

    <turnOnVehicle aiRequiresTurnOn="false"/>

    <sowingMachine fillUnitIndex="1">
        <seedFruitTypes>grass oilseedRadish canola</seedFruitTypes>
        <needsActivation value="true" />
        <useDirectPlanting value="false" />
        <sounds>
            <work template="DEFAULT_SOWING_WORK" linkNode="0>" />
            <airBlower template="DEFAULT_SOWING_AIR_BLOWER" linkNode="0>" />
        </sounds>
    </sowingMachine>

    <roller onlyActiveWhenLowered="false" isGrassRoller="true">
        <sounds>
            <work template="MEADOW_ROLLER_WORK" />
        </sounds>
    </roller>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <unloading width="7" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="seeds" capacity="200" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.1" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>

    <cover>
        <coverConfigurations>
            <coverConfiguration >
                <cover openAnimation="toggleCover" fillUnitIndices="1" />
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack"/>
        <collisionTrigger node="aiCollisionNode" width="3" height="2"/>
        <agentAttachment width="3.0" height="1.8" length="2" lengthOffset="0.05"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.55" maxX="1.55" minZ="-0.85" maxZ="1" yOffset="0.3" />
    </foliageBending>

    <baseMaterial>
        <material name="gk300m_mat" baseNode="gk300m_vis">
            <shaderParameter name="colorMat0" value="APV_RED1"/>
            <shaderParameter name="colorMat1" value="APV_YELLOW1"/>
            <shaderParameter name="colorMat2" value="APV_YELLOW1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="gm300m_main_component1" node="0>" />
        <i3dMapping id="gk300m_vis" node="0>0" />
        <i3dMapping id="wheelLeft" node="0>0|0|0" />
        <i3dMapping id="wheelRight" node="0>0|0|1" />
        <i3dMapping id="attacherJoint" node="0>0|1|0" />
        <i3dMapping id="topReferenceNode" node="0>0|1|1" />
        <i3dMapping id="supportCol" node="0>0|1|2" />
        <i3dMapping id="supportArm_attached" node="0>0|1|3" />
        <i3dMapping id="supportArm_detached" node="0>0|1|4" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|1|5|0" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|1|5|0|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|1|5|1" />
        <i3dMapping id="hydraulicOut02_detachedAdapter" node="0>0|1|5|1|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|1|5|2" />
        <i3dMapping id="hydraulicIn01" node="0>0|1|5|3" />
        <i3dMapping id="electric" node="0>0|1|5|4" />
        <i3dMapping id="electric_detached" node="0>0|1|5|5" />
        <i3dMapping id="frontLight03" node="0>0|2|0|0" />
        <i3dMapping id="frontLight02" node="0>0|2|0|1" />
        <i3dMapping id="rearLight05_right" node="0>0|2|0|2" />
        <i3dMapping id="rearLight05_left" node="0>0|2|0|3" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|2|1" />
        <i3dMapping id="discs01" node="0>0|3|0" />
        <i3dMapping id="discs02" node="0>0|3|1" />
        <i3dMapping id="tines" node="0>0|3|2" />
        <i3dMapping id="ladder" node="0>0|3|3" />
        <i3dMapping id="cover" node="0>0|4|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|5|0" />
        <i3dMapping id="fillVolume" node="0>0|5|1" />
        <i3dMapping id="groundReferenceNode" node="0>0|6|0" />
        <i3dMapping id="workAreaStart" node="0>0|6|1" />
        <i3dMapping id="workAreaWidth" node="0>0|6|2" />
        <i3dMapping id="workAreaHeight" node="0>0|6|3" />
        <i3dMapping id="areaStart" node="0>0|6|4" />
        <i3dMapping id="areaWidth" node="0>0|6|5" />
        <i3dMapping id="areaHeight" node="0>0|6|6" />
        <i3dMapping id="aiMarkerLeft" node="0>0|7|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|7|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|7|2" />
        <i3dMapping id="sizeMarkerLeft" node="0>0|7|3" />
        <i3dMapping id="sizeMarkerRight" node="0>0|7|4" />
        <i3dMapping id="sizeMarkerBack" node="0>0|7|5" />
        <i3dMapping id="aiCollisionNode" node="0>0|7|6" />
        <i3dMapping id="smokeEmitter" node="0>0|8|0" />
        <i3dMapping id="effectUnload" node="0>0|8|1" />
    </i3dMappings>
</vehicle>
