﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="windrower" 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>Air 300 F Alp</name>
        <specs>
            <workingWidth>3</workingWidth>
            <neededPower>100</neededPower>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="400" filterSpecMax="600"/>
        </specs>
        <functions>
            <function>$l10n_function_windrower</function>
        </functions>
        <rotation>0</rotation>
        <image>$data/vehicles/sip/air300FAlp/store_air300FAlp.png</image>
        <price>15000</price>
        <lifetime>600</lifetime>
        <brand>SIP</brand>
        <category>windrowers</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0.142 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2865920</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>829440</indexBufferMemoryUsage>
        <textureMemoryUsage>2031616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_windrower</typeDesc>
        <filename>$data/vehicles/sip/air300FAlp/air300FAlp.i3d</filename>
        <size width="4" length="2.5"/>
        <speedLimit value="15"/>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="425" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="425" />
            <joint component1="1" component2="2" node="componentJointAttacher" rotLimit="0 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" rootNode="air300FAlp_attacher_component2" topReferenceNode="topReferenceNode" lowerTransLimitScale="0 1 0" lowerRotLimitScale="0 0 0" upperRotationOffset="15" lowerRotationOffset="-10">
                <distanceToGround lower="0.5" upper="1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <lowerAnimation name="lowerAnimation"/>
    </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" />
    </dynamicallyLoadedParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.9" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.9" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="0.9" diameter="0.008" straighteningFactor="1"/>
    </connectionHoses>

    <speedRotatingParts>
        <speedRotatingPart node="holdDownRoller" radius="0.2" groundReferenceNodeIndex="1" workAreaIndex="1"/>
    </speedRotatingParts>

    <powerConsumer ptoRpm="400" neededMinPtoPower="15" neededMaxPtoPower="20"/>

    <groundReferenceNodes>
        <groundReferenceNode node="air300FAlp_main_component1"  threshold="0.2" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="windrower" functionName="processWindrowerArea" disableBackwards="true" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <windrower dropWindrowWorkAreaIndex="3" particleSystemIndex="1" />
            <testAreas autoGenerate="true" zOffset="0.5" xOffset="0" length="1.5" numAreas="4" areaWidthScale="0.35"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>
        <workArea type="windrower" functionName="processWindrowerArea" disableBackwards="true" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <windrower dropWindrowWorkAreaIndex="4" particleSystemIndex="1" />
            <testAreas autoGenerate="true" zOffset="0.5" xOffset="0" length="1.5" numAreas="4" areaWidthScale="0.35"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>

        <workArea type="auxiliary" >
            <area startNode="dropArea01Start" widthNode="dropArea01Width" heightNode="dropArea01Height" />
        </workArea>
        <workArea type="auxiliary" >
            <area startNode="dropArea02Start" widthNode="dropArea02Width" heightNode="dropArea02Height" />
        </workArea>
    </workAreas>

    <workModes>
        <workMode name="$l10n_action_workMode_leftSwath" inputBindingName="WORKMODE_LEFT">
            <turnedOnAnimations>
                <turnedOnAnimation name="turnedOnAnimation" speedScale="0.5" turnOnFadeTime="1" turnOffFadeTime="1"/>
            </turnedOnAnimations>

            <animation name="aiMarkerMoveAnimation" speed="1" stopTime="1"/>

            <workAreas>
                <workArea workAreaIndex="1" dropAreaIndex="3"/>
                <workArea workAreaIndex="2" dropAreaIndex="0"/>
            </workAreas>
        </workMode>
        <workMode name="$l10n_action_workMode_rightSwath" inputBindingName="WORKMODE_RIGHT">
            <turnedOnAnimations>
                <turnedOnAnimation name="turnedOnAnimation" speedScale="-0.5" turnOnFadeTime="1" turnOffFadeTime="1"/>
            </turnedOnAnimations>

            <animation name="aiMarkerMoveAnimation" speed="-1" stopTime="0"/>

            <workAreas>
                <workArea workAreaIndex="2" dropAreaIndex="4"/>
                <workArea workAreaIndex="1" dropAreaIndex="0"/>
            </workAreas>
        </workMode>
    </workModes>

    <lights>
        <sharedLight linkNode="yellowRound_02"       filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_03"       filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_04"       filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_05"       filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="sideMarker05White_01" filename="$data/shared/assets/lights/lizard/sideMarker05White.xml" />
        <sharedLight linkNode="sideMarker05White_02" filename="$data/shared/assets/lights/lizard/sideMarker05White.xml" />
        <sharedLight linkNode="sideMarker05Red_01"   filename="$data/shared/assets/lights/lizard/sideMarker05Red.xml" />
        <sharedLight linkNode="sideMarker05Red_02"   filename="$data/shared/assets/lights/lizard/sideMarker05Red.xml" />
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0" endTime="0.2" startTrans="0 0 0" endTrans="0 -0.217 0"/>

            <sound template="latchSmall" startTime="0.19" direction="1" pitchScale="1.7" volumeScale="0.5" linkNode="attacherJoint"/>
            <sound template="clackVar1"  startTime="0.1"                pitchScale="1.5" volumeScale="1.2" linkNode="attacherJoint"/>
        </animation>
        <animation name="lowerAnimation">
            <part componentJointIndex="1" startTime="0" endTime="1" startRotLimit="0 0 0" endRotLimit="10 0 0" />

            <sound template="foldStartMed02" startTime="0.7"  direction="-1" pitchScale="0.8" volumeScale="2.8" />
            <sound template="sheetImp02"     startTime="0.7"  direction="-1" pitchScale="1.3" volumeScale="2" />
            <sound template="sheetImp02"     startTime="0.01" direction="1"  pitchScale="0.8" volumeScale="2" />
            <sound template="clackVar4"      startTime="0.01" direction="1"  pitchScale="0.7" volumeScale="1" />
            <sound template="clackVar6"      startTime="0.9"  direction="1"  pitchScale="0.8" volumeScale="1.3" />
            <sound template="foldStartMed02" startTime="0.9"  direction="1"  pitchScale="0.8" volumeScale="1.8" />
            <sound template="sheetImp02"     startTime="0.9"  direction="1"  pitchScale="1.6" volumeScale="1" />
        </animation>
        <animation name="turnedOnAnimation" looping="true">
            <part node="belt" startTime="0" endTime="0.9999" shaderParameter="scrollPosition" shaderStartValues="0 0 0 0" shaderEndValues="1 0 0 0"/>
            <part node="belt" startTime="0.9999" endTime="1" shaderParameter="scrollPosition" shaderStartValues="1 0 0 0" shaderEndValues="0 0 0 0"/>
        </animation>
        <animation name="aiMarkerMoveAnimation">
            <part node="aiMarkerLeft" startTime="0" endTime="0.1" startTrans="1.5 0 0.706" endTrans="2.3 0 0.706"/>
            <part node="aiMarkerRight" startTime="0" endTime="0.1" startTrans="-2.3 0 0.706" endTrans="-1.5 0 0.706"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
        </movingTools>

        <movingParts>
            <movingPart node="bottomArmBar" referencePoint="bottomArmBarRef" referenceFrame="bottomArmBarRefFrame" isActiveDirty="true" maxUpdateDistance="50"/>

            <movingPart node="holdDownRollerArm" referencePoint="holdDownRollerArmRef" referenceFrame="holdDownRollerArmRef" isActiveDirty="true" maxUpdateDistance="50">
                <dependentPart node="holdDownRollerArmDamperMount"/>
            </movingPart>
            <movingPart node="holdDownRollerArmDamperMount" referencePoint="holdDownRollerArmDamper" referenceFrame="holdDownRollerArmDamperMountRefFrame">
                <dependentPart node="holdDownRollerArmDamper"/>
            </movingPart>
            <movingPart node="holdDownRollerArmDamper" referencePoint="holdDownRollerArmDamperRef" referenceFrame="holdDownRollerArmDamperRef">
                <dependentPart node="holdDownRollerArmDamperScale"/>
            </movingPart>
            <movingPart node="holdDownRollerArmDamperScale" referencePoint="holdDownRollerArmDamperRef" referenceFrame="holdDownRollerArmDamperRef" scaleZ="true"/>
        </movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>

    <suspensions>
        <suspension node="holdDownRollerArmSuspensionNode" weight="500" minTranslation="0 -0.10 0.0" maxTranslation="0 0.4 0.0" suspensionParametersX="200 17" suspensionParametersY="50 5" suspensionParametersZ="200 17" />
    </suspensions>

    <windrower fillTypeCategories="WINDROW">
        <effects>
            <effect workAreaIndex="1">
                <effectNode effectClass="WindrowerMotionPathEffect" effectType="WINDROWER" linkNode="windrowerEffectLeftNode">
                    <motionPathEffect textureFilename="$data/vehicles/sip/air300FAlp/windrowerEffectLeftArray.dds" numRows="11" rowLength="32" minFade="0.03" isLeft="false" isPickup="true" speedScale="0.6" shapeScale="1" maxShapeScale="2"/>
                </effectNode>
                <effectNode effectNode="smokeEmitter" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.15"/>
            </effect>
            <effect workAreaIndex="2">
                <effectNode effectClass="WindrowerMotionPathEffect" effectType="WINDROWER" linkNode="windrowerEffectRightNode">
                    <motionPathEffect textureFilename="$data/vehicles/sip/air300FAlp/windrowerEffectRightArray.dds" numRows="11" rowLength="32" minFade="0.03" isLeft="false" isPickup="true" speedScale="0.6" shapeScale="1" maxShapeScale="2"/>
                </effectNode>
                <effectNode effectNode="smokeEmitter" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.15"/>
            </effect>
        </effects>

        <animationNodes>
            <animationNode node="rotor"  rotSpeed="700"  rotAxis="1" />
            <animationNode node="tines"  rotSpeed="-700" rotAxis="1" />
        </animationNodes>
    </windrower>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <sounds>
            <start template="MEX5_FORAGE_START" />
            <work template="MEX5_FORAGE_WORK" />
            <stop template="MEX5_FORAGE_STOP" />
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="3.1" height="1.4"/>
        <agentAttachment width="3.0" height="1.5" length="2.0" lengthOffset="0.1"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-0.6" maxZ="0.95" yOffset="0.1" />
    </foliageBending>

    <baseMaterial>
        <material name="air300FAlp_mat" baseNode="air300FAlp_vis">
            <shaderParameter name="colorMat0" value="SIP_RED1"/>
            <shaderParameter name="colorMat1" value="SIP_BLUE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="air300FAlp_main_component1" node="0>" />
        <i3dMapping id="air300FAlp_vis" node="0>0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0|0" />
        <i3dMapping id="electric" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|2|1|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|2|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|2|2|0|0" />
        <i3dMapping id="yellowRound_02" node="0>0|1|0|0" />
        <i3dMapping id="yellowRound_03" node="0>0|1|0|1" />
        <i3dMapping id="yellowRound_04" node="0>0|1|0|2" />
        <i3dMapping id="yellowRound_05" node="0>0|1|0|3" />
        <i3dMapping id="sideMarker05Red_01" node="0>0|1|0|4" />
        <i3dMapping id="sideMarker05Red_02" node="0>0|1|0|5" />
        <i3dMapping id="sideMarker05White_01" node="0>0|1|0|6" />
        <i3dMapping id="sideMarker05White_02" node="0>0|1|0|7" />
        <i3dMapping id="bottomArmBarRefFrame" node="0>0|2|0" />
        <i3dMapping id="bottomArmBar" node="0>0|2|0|0" />
        <i3dMapping id="componentJointAttacher" node="0>0|2|0|1" />
        <i3dMapping id="rotor" node="0>0|2|1" />
        <i3dMapping id="tines" node="0>0|2|2" />
        <i3dMapping id="belt" node="0>0|2|3" />
        <i3dMapping id="holdDownRollerArmSuspensionNode" node="0>0|2|4" />
        <i3dMapping id="holdDownRollerArmRef" node="0>0|2|4|0" />
        <i3dMapping id="holdDownRollerArm" node="0>0|2|5" />
        <i3dMapping id="holdDownRoller" node="0>0|2|5|0" />
        <i3dMapping id="holdDownRollerArmDamper" node="0>0|2|5|1" />
        <i3dMapping id="holdDownRollerArmDamperScale" node="0>0|2|5|1|0" />
        <i3dMapping id="holdDownRollerArmDamperMountRefFrame" node="0>0|2|6" />
        <i3dMapping id="holdDownRollerArmDamperMount" node="0>0|2|6|0" />
        <i3dMapping id="holdDownRollerArmDamperRef" node="0>0|2|6|0|0" />
        <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="dropArea01Start" node="0>0|3|3" />
        <i3dMapping id="dropArea01Width" node="0>0|3|4" />
        <i3dMapping id="dropArea01Height" node="0>0|3|5" />
        <i3dMapping id="dropArea02Start" node="0>0|3|6" />
        <i3dMapping id="dropArea02Width" node="0>0|3|7" />
        <i3dMapping id="dropArea02Height" node="0>0|3|8" />
        <i3dMapping id="windrowerEffectLeftNode" node="0>0|4|0" />
        <i3dMapping id="windrowerEffectRightNode" node="0>0|4|1" />
        <i3dMapping id="smokeEmitter" node="0>0|4|2" />
        <i3dMapping id="aiMarkerLeft" node="0>0|5|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|5|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|5|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|5|3" />
        <i3dMapping id="air300FAlp_attacher_component2" node="1>" />
        <i3dMapping id="attacherJoint" node="1>0" />
        <i3dMapping id="bottomArmBarRef" node="1>1" />
    </i3dMappings>
</vehicle>
