<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="sowingMachine" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">

    <storeData>
        <name>AEROSEM 3002</name>
        <specs>
            <neededPower>75</neededPower>
            <workingWidth>3</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_sowingMachine</function>
        </functions>
        <image>textures/store_Aerosem_3002.png</image>
        <price>22500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>POETTINGER</brand>
        <category>seeders</category>
        <shopLoadingDelay initial="0.2"/>
        <shopHeight>2.8</shopHeight>
        <shopTranslationOffset>0 -0.015 0</shopTranslationOffset>
        <shopRotationOffset>-2.51 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_sowingMachine</typeDesc>
        <filename>i3d/Aerosem_3002.i3d</filename>
        <size width="4" length="3.5"/>
        <speedLimit value="15" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="15" mass="800" />
            <component centerOfMass="0 0 0"   solverIterationCount="15" mass="200" />
            <joint component1="1" component2="2" node="componentJoint" rotLimit="0 0 0" transLimit="0 0.05 0" transMinLimit="0 -0.075 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <powerConsumer forceNode="aerosem3002_main_component1" maxForce="10" />

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.2" depthNode="depthNode" />
    </groundReferenceNodes>

    <lights>
        <sharedLight linkNode="frontLightRectangle_01_01" filename="$data/shared/assets/lights/lizard/frontLight06White.xml" />
        <sharedLight linkNode="frontLightRectangle_01_02" filename="$data/shared/assets/lights/lizard/frontLight06White.xml" />
        <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" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack"/>
                <turnLightRight node="turnLightRightBack"/>
                <brakeLight node="backLightsHigh1"/>
            </high>
        </realLights>
    </lights>

    <workAreas>
        <workArea type="sowingMachine" functionName="processSowingMachineArea">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight"/>
            <groundReferenceNode index="1"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <unloading width="3.2" offset="0 0 -2.5" />
                    <fillUnit fillTypes="seeds" capacity="1250">
                        <exactFillRootNode node="exactFillRootNode" extraEffectDistance="0.3"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" fillUnitIndex="1" maxDelta="0.2"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>

    <sowingMachine fillUnitIndex="1">
        <seedFruitTypeCategories>sowingMachine</seedFruitTypeCategories>
        <needsActivation value="true"/>
        <useDirectPlanting value="false" />
        <fieldGroundType value="SOWN" />
        <sounds>
            <work template="defaultSowingWork" volumeScale="1.3" pitchScale="1.1" fadeIn="0.1" fadeOut="0.1"/>
            <airBlower template="defaultSowingAirBlower" volumeScale="1.1" pitchScale="1.2" fadeIn="0.1" fadeOut="0.1"  />
        </sounds>
    </sowingMachine>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" jointType="implement" lowerTransLimitScale="0 0 0" upperRotationOffset="0" lowerRotLimitScale="0 0 0" isDefaultLowered="true" needsLowering="false" allowsLowering="false" forceSelectionOnAttach="false" allowDetachWhileParentLifted="false">
                <distanceToGround lower="0.05" upper="0.8" />
                <objectChange node="supperLeg" visibilityActive="false" visibilityInactive="true"/>
                <objectChange node="supperLegBack" visibilityActive="false" visibilityInactive="true"/>
                <subType name="aerosem3002"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <dynamicallyLoadedParts>
        <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|1" linkNode="electric_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" length="0.9" diameter="0.02" isWorldSpaceHose="false">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.15" diameter="0.02" isWorldSpaceHose="false">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="0.9" diameter="0.008" isWorldSpaceHose="false">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <speedRotatingParts>
        <speedRotatingPart shaderNode="seederArm01Disc" radius="-0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="seederArm02Disc" radius="-0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="seederArm03Disc" radius="-0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="seederArm04Disc" radius="-0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="seederArm05Disc" radius="-0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart shaderNode="seederArm06Disc" radius="-0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="seederArm01Wheel" radius="0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="seederArm02Wheel" radius="0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="seederArm03Wheel" radius="0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="seederArm04Wheel" radius="0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="seederArm05Wheel" radius="0.22" groundReferenceNodeIndex="1" />
        <speedRotatingPart node="seederArm06Wheel" radius="0.22" groundReferenceNodeIndex="1" />
    </speedRotatingParts>

    <animations>
        <animation name="toggleCover" soundVolumeFactor="2">
            <part node="step"         startTime="0"    endTime="0.98" startRot="0 0 0" endRot="0 0 -172.273" />
            <part node="cover_closed" startTime="0.98" endTime="0.99" visibility="true" />
            <part node="cover_closed" startTime="0.99" endTime="1.0"  visibility="false" />
            <part node="cover_open"   startTime="0.98" endTime="0.99" visibility="false" />
            <part node="cover_open"   startTime="0.99" endTime="1.0"  visibility="true" />

            <sound template="fabricCover1" startTime="0.99" direction="1"  volumeScale="1.1" pitchScale="1.5"/>
            <sound template="fabricCover2" startTime="0.99" direction="-1" volumeScale="1.1" pitchScale="1.5"/>
            <sound template="hingeMedium"  startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="0.6" linkNode="step"/>
            <sound template="clackVar6"    startTime="0.99" direction="1"  volumeScale="0.8" pitchScale="0.7" linkNode="step"/>
            <sound template="sheetImp02"   startTime="0.99" direction="1"  volumeScale="1.6" pitchScale="1.3" linkNode="step"/>
            <sound template="clackVar6"    startTime="0.01" direction="-1" volumeScale="0.8" pitchScale="0.8" linkNode="step"/>
            <sound template="sheetImp02"   startTime="0.01" direction="-1" volumeScale="1.2" pitchScale="1.8" linkNode="step"/>
        </animation>
        <animation name="moveSupport">
            <part node="supportCol" startTime="0" endTime="0.2" startTrans="0 0.5 0" endTrans="0 0 0" />
            <part node="supportColPart01" startTime="0" endTime="0.2" startTrans="-0.3 0.8 0" endTrans="0 0 0" />
            <part node="supportColPart02" startTime="0" endTime="0.2" startTrans="0.3 0.8 0" endTrans="0 0 0" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
        </movingTools>

        <movingParts>
            <movingPart node="backArm01" referencePoint="backArm01Ref" referenceFrame="backArm01RefFrame" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="70">
                <dependentPart node="backArm02"/>
            </movingPart>
            <movingPart node="backArm02" referencePoint="backArm02Ref" referenceFrame="backArm01RefFrame" limitedAxis="1">
                <dependentPart node="backArmTop"/>
                <dependentPart node="backArmHydraulic"/>
            </movingPart>
            <movingPart node="backArmTop" referencePoint="backArmTopRef" referenceFrame="backArmTopRef" limitedAxis="1"/>
            <movingPart node="backArmHydraulic" referencePoint="backArmHydraulicRef" referenceFrame="backArmHydraulicRef">
                <translatingPart node="backArmHydraulicPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <randomlyMovingParts>
        <randomlyMovingPart node="seederArm01" rotAxis="1" rotMax="3" speedScale="0.7" refNodeIndex="1" isSpeedDependent="true" />
        <randomlyMovingPart node="seederArm02" rotAxis="1" rotMax="3" speedScale="0.7" refNodeIndex="1" isSpeedDependent="true" />
        <randomlyMovingPart node="seederArm03" rotAxis="1" rotMax="3" speedScale="0.7" refNodeIndex="1" isSpeedDependent="true" />
        <randomlyMovingPart node="seederArm04" rotAxis="1" rotMax="3" speedScale="0.7" refNodeIndex="1" isSpeedDependent="true" />
        <randomlyMovingPart node="seederArm05" rotAxis="1" rotMax="3" speedScale="0.7" refNodeIndex="1" isSpeedDependent="true" />
        <randomlyMovingPart node="seederArm06" rotAxis="1" rotMax="3" speedScale="0.7" refNodeIndex="1" isSpeedDependent="true" />
    </randomlyMovingParts>

    <workParticles>
        <effect workAreaIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="rollEffect01LinkNode">
                <motionPathEffect textureFilename="textures/rollEffect01Array.dds" numRows="30" rowLength="18" minFade="0.07" density="0.5" shapeScale="0.5" maxShapeScale="0.5"/>
            </effectNode>
        </effect>
        <particle>
            <node node="dustEmitterShape" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="1.0" />
        </particle>
    </workParticles>

    <turnOnVehicle>
        <sounds>
            <start template="strawblowerStart"     volumeScale="1.2"/>
            <work template="strawblowerWork"       volumeScale="1.2"/>
            <stop template="strawblowerStop"       volumeScale="1.2"/>
        </sounds>
    </turnOnVehicle>

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

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionTrigger" />
        <lookAheadSize value="3"/>
        <needsLowering value="true"/>
        <agentAttachment width="3.15" height="2.2" length="2.8" lengthOffset="-0.15"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-1.4" maxZ="0" yOffset="0.25" />
        <bendingNode minX="-1.5" maxX="1.5" minZ="0" maxZ="1" yOffset="0.9" />
    </foliageBending>

    <baseColorConfigurations useDefaultColors="true" price="0">
        <material materialSlotName="principal_mat" />
        <baseColorConfiguration materialTemplateName="POETTINGER_RED1" isDefault="true"/>
        <baseColorConfiguration materialTemplateName="POETTINGER_WHITE1" />
        <baseColorConfiguration materialTemplateName="POETTINGER_YELLOW" />
    </baseColorConfigurations>
	
    <designColorConfigurations  useDefaultColors="true" price="0">
        <material materialSlotName="desing_mat"/>
        <designColorConfiguration materialTemplateName="POETTINGER_WHITE1" isDefault="true"/>
        <designColorConfiguration materialTemplateName="POETTINGER_RED1" />
        <designColorConfiguration materialTemplateName="POETTINGER_YELLOW" />
    </designColorConfigurations>
	
    <designColor2Configurations title="$l10n_configuration_coverColor" useDefaultColors="true" price="0">
        <material materialSlotName="cover_mat"/>
        <designColor2Configuration materialTemplateName="POETTINGER_YELLOW" isDefault="true"/>
        <designColor2Configuration materialTemplateName="POETTINGER_RED1" />
        <designColor2Configuration materialTemplateName="POETTINGER_WHITE1" />
    </designColor2Configurations>
	
    <wearable wearDuration="2480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="aerosem3002_main_component1" node="0>" />
        <i3dMapping id="aerosem3002_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="supperLeg" node="0>0|0|2|0" />
        <i3dMapping id="supportColPart01" node="0>0|0|2|1" />
        <i3dMapping id="supportColPart02" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|3|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|3|0|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|3|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|3|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|3|1|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|3|1|0|0" />
        <i3dMapping id="electric_detached" node="0>0|0|3|2" />
        <i3dMapping id="electric_detachedAdapter" node="0>0|0|3|2|0" />
        <i3dMapping id="electric" node="0>0|0|3|3" />
        <i3dMapping id="componentJoint" node="0>0|0|4" />
        <i3dMapping id="frontLightRectangle_01_02" node="0>0|1|0|0" />
        <i3dMapping id="frontLightRectangle_01_01" node="0>0|1|0|1" />
        <i3dMapping id="workAreaStart" node="0>0|2|0" />
        <i3dMapping id="workAreaWidth" node="0>0|2|1" />
        <i3dMapping id="workAreaHeight" node="0>0|2|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|2|3" />
        <i3dMapping id="depthNode" node="0>0|2|4" />
        <i3dMapping id="aiMarkerLeft" node="0>0|3|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|3|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|3|2" />
        <i3dMapping id="aiCollisionTrigger" node="0>0|3|3" />
        <i3dMapping id="dustEmitterShape" node="0>0|4|0" />
        <i3dMapping id="rollEffect01LinkNode" node="0>0|4|1" />
        <i3dMapping id="exactFillRootNode" node="0>0|5|0" />
        <i3dMapping id="fillVolume" node="0>0|5|1" />
        <i3dMapping id="cover_open" node="0>0|6|0" />
        <i3dMapping id="cover_closed" node="0>0|6|1" />
        <i3dMapping id="backArm01RefFrame" node="0>0|7|0" />
        <i3dMapping id="backArm01" node="0>0|7|0|0" />
        <i3dMapping id="backArm02" node="0>0|7|0|0|0" />
        <i3dMapping id="seederArm01" node="0>0|7|0|0|0|0" />
        <i3dMapping id="seederArm01Disc" node="0>0|7|0|0|0|0|0" />
        <i3dMapping id="seederArm01Wheel" node="0>0|7|0|0|0|0|1" />
        <i3dMapping id="seederArm02" node="0>0|7|0|0|0|1" />
        <i3dMapping id="seederArm02Disc" node="0>0|7|0|0|0|1|0" />
        <i3dMapping id="seederArm02Wheel" node="0>0|7|0|0|0|1|1" />
        <i3dMapping id="seederArm03" node="0>0|7|0|0|0|2" />
        <i3dMapping id="seederArm03Disc" node="0>0|7|0|0|0|2|0" />
        <i3dMapping id="seederArm03Wheel" node="0>0|7|0|0|0|2|1" />
        <i3dMapping id="seederArm04" node="0>0|7|0|0|0|3" />
        <i3dMapping id="seederArm04Disc" node="0>0|7|0|0|0|3|0" />
        <i3dMapping id="seederArm04Wheel" node="0>0|7|0|0|0|3|1" />
        <i3dMapping id="seederArm05" node="0>0|7|0|0|0|4" />
        <i3dMapping id="seederArm05Disc" node="0>0|7|0|0|0|4|0" />
        <i3dMapping id="seederArm05Wheel" node="0>0|7|0|0|0|4|1" />
        <i3dMapping id="seederArm06" node="0>0|7|0|0|0|5" />
        <i3dMapping id="seederArm06Disc" node="0>0|7|0|0|0|5|0" />
        <i3dMapping id="seederArm06Wheel" node="0>0|7|0|0|0|5|1" />
        <i3dMapping id="step" node="0>0|7|0|0|0|6|0" />
        <i3dMapping id="backArmTopRef" node="0>0|7|0|0|0|7" />
        <i3dMapping id="supperLegBack" node="0>0|7|0|0|0|9" />
        <i3dMapping id="backLightsHigh1" node="0>0|7|0|0|0|12|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|7|0|0|0|13|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|7|0|0|0|13|1" />
        <i3dMapping id="backArmHydraulicRef" node="0>0|7|0|0|1" />
        <i3dMapping id="backArmTop" node="0>0|7|1" />
        <i3dMapping id="backArmHydraulic" node="0>0|7|2" />
        <i3dMapping id="backArmHydraulicPunch" node="0>0|7|2|0" />
        <i3dMapping id="aerosem3002_seeders_component2" node="1>" />
        <i3dMapping id="backArm01Ref" node="1>0" />
        <i3dMapping id="backArm02Ref" node="1>1" />
        <i3dMapping id="supportCol" node="1>2" />
        <i3dMapping id="rearLight05_left" node="0>0|7|0|0|0|11|0" />
        <i3dMapping id="rearLight05_right" node="0>0|7|0|0|0|11|1" />
    </i3dMappings>
</vehicle>
