<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="mower" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs25/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    
    <storeData>
        <name>
            <en>Mähbalken</en>
        </name>    
        <specs>
            <neededPower>3</neededPower>
            <workingWidth>2.00</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>Balken.png</image>
        <price>2100</price>
        <lifetime>600</lifetime>
        <rotation>180</rotation>
        <brand>LIZARD</brand>
        <category>mowers</category>
        <vertexBufferMemoryUsage>454912</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>105472</indexBufferMemoryUsage>
        <textureMemoryUsage>851968</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    
    <base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>Balken.i3d</filename>
        <size width="4.0" length="2.0"/>
        <speedLimit value="22"/>
        <components>
            <component centerOfMass="-0.1 0 -0.2" solverIterationCount="20" mass="0"/>
        </components>
        <schemaOverlay name="IMPLEMENT" attacherJointPosition="0 0"/>
        <speedLimit value="10"/>
        <mapHotspot type="TOOL"/>
    </base>
    
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0" jointType="implement" lowerRotLimitScale="0 0 0" upperRotationOffset="2" isDefault="true" allowsLowering="true" isDefaultLowered="false" needsLowering="false">
                <distanceToGround lower="0.35" upper="1.0"/>
                <objectChange node="0>10" visibilityActive="true" visibilityInactive="false"/>
                <objectChange node="0>11" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
         <lowerAnimation name="lowerAnimation"/>
    </attachable>

    <powerConsumer forceNode="0>" maxForce="1" neededMaxPtoPower="3"/>
    
    <groundReferenceNodes>
        <groundReferenceNode node="0>6" threshold="0.3"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="false">
            <area startNode="0>4|0" widthNode="0>4|1" heightNode="0>4|2"/>
            <groundReferenceNode index="1"/>
            <mower dropWindrow="true" dropAreaIndex="2"/>            
        </workArea>
         <workArea type="auxiliary">
            <area startNode="0>5|0" widthNode="0>5|1" heightNode="0>5|2"/>
        </workArea>
    </workAreas>    

	<mower fruitTypeConverter="MOWER">
    <dropEffects>
      <dropEffect dropAreaIndex="2" workAreaIndex="1">
        <effectNode delay="0" effectNode="0>13" materialType="mower" materialTypeId="1" />
      </dropEffect>
    </dropEffects>
  </mower>
    
    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" turnOnFoldMaxLimit="0.1" turnOnFoldMinLimit="0">
                    <foldingPart animationName="rotateBalken" speedScale="0.7"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
    
    <animations>
        <animation name="turnOnAnimation" looping="true">
            <part node="0>8|0|0|0|0" startTime="0" endTime="1" startTrans="-2.2 0.006 0.256" endTrans="-2.1 0.006 0.256"/>
            <part node="0>8|0|0|0|0" startTime="1" endTime="2" startTrans="-2.1 0.006 0.256" endTrans="-2.2 0.006 0.256"/>
            <part node="0>11" startTime="1" endTime="2" startTrans="-0.151 -0.134 -0.307" endTrans="-0.051 -0.134 -0.307"/>
            <part node="0>11" startTime="0" endTime="1" startTrans="-0.051 -0.134 -0.307" endTrans="-0.151 -0.134 -0.307"/>
            <part node="0>10" startTime="0" endTime="2.4" startRot="0 0 0" endRot="0 0 359"/> 
        </animation>
        <animation name="lowerAnimation">
            <part node="0>8|0|1" startTime="0" endTime="2" startRot="10 -24 0" endRot="1.5 -24 0"/> 
        </animation>
        <animation name="rotateBalken">
            <part node="0>8" startTime="0.6" endTime="1.6" startRot="0 0 0" endRot="0 0 -80"/> 
            <part node="0>9" startTime="0.6" endTime="1.6" startRot="0 0 0" endRot="0 0 -80"/> 
            <part node="0>8|0|0|0|0" startTime="0" endTime="1" startTrans="-2.1 0.006 0.256" endTrans="-2.2 0.006 0.256"/>
            <part node="0>11" startTime="0" endTime="1" endTrans="-0.051 -0.134 -0.307" startTrans="-0.151 -0.134 -0.307"/>
        </animation>    
    </animations>
    
    <cylindered>
        <movingParts>
            <movingPart node="0>11" referencePoint="0>10|1" referenceFrame="0>" scaleZ="false" playSound="false" maxUpdateDistance="300" isActiveDirty="true"/>
        </movingParts>
    </cylindered>

    <turnOnVehicle>
        <turnedOnAnimation name="turnOnAnimation" speedScale="10" turnOnFadeTime="1" turnOffFadeTime="1"/>    
        <sounds>
            <work file="sounds/mower.ogg">
                <volume outdoor="0.7"/>
                <pitch outdoor="0.8"/>
            </work>
        </sounds>
    </turnOnVehicle>
    
    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="0>8|0|0|7|0|0" rightNode="0>8|0|0|7|0|1" backNode="0>8|0|0|7|0|2"/>
        <sizeMarkers leftNode="0>8|0|0|7|1|0" rightNode="0>8|0|0|7|1|1" backNode="0>8|0|0|7|1|2"/>
        <collisionTrigger node="0>8|0|0|7|2"/>
        <agentAttachment width="2.3" height="1.2" length="1.2" lengthOffset="0.15"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="2" fieldMultiplier="2"/>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
    
    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-0.5" maxZ="0.3" yOffset="0.2"/>
    </foliageBending>

</vehicle>
