﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="mulcher" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>MUL-1000</name>
        <specs>
            <neededPower>12</neededPower>
            <workingWidth>1.0</workingWidth>
            <combination xmlFilename="$data/vehicles/landini/seriesREX4/seriesREX4.xml"/>
            <combination xmlFilename="$data/vehicles/newHolland/tk4/tk4.xml"/>
            <combination xmlFilename="$data/vehicles/fendt/vario200/vario200.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_mulcher</function>
            <function>$l10n_function_vineOliveTool</function>
        </functions>
        <image>$data/vehicles/salek/mul1000/store_mul1000.png</image>
        <price>1850</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SALEK</brand>
        <category>mulchers</category>
        <shopTranslationOffset>0 0.009 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <shopHeight>1.5</shopHeight>
        <vertexBufferMemoryUsage>457472</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>71168</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mulcher</typeDesc>
        <filename>$data/vehicles/salek/mul1000/mul1000.i3d</filename>
        <size width="2" height="3" length="1.3" lengthOffset="0.2"/>
        <speedLimit value="12"/>
        <components>
            <component centerOfMass="0 0.1 0.1" solverIterationCount="15" mass="120"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel>
                        <physics restLoad="0.1" repr="wheel01" forcePointRatio="0.2" radius="0.17" width="1.2" mass="0.02" initialCompression="15" suspTravel="0.10" spring="10" damper="15" yOffset="0.013"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="rollerBack" radius="0.1" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true" />
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotationOffset="-2" upperRotationOffset="10" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 1 0" allowsLowering="true">
                <distanceToGround lower="0.23" upper="0.7"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" detachNode="ptoDetached" aboveAttacher="true"/>
    </powerTakeOffs>

    <powerConsumer forceNode="mul1000_main_component1" ptoRpm="470" neededMaxPtoPower="5"/>

    <lights>
        <sharedLight linkNode="redTriangle_02_01" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="redTriangle_02_02" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
    </lights>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.15"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mulcher" functionName="processMulcherArea" disableBackwards="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight"/>
            <groundReferenceNode index="1"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <animations>
        <animation name="moveSupport">
            <part node="support" startTime="0.0" endTime="0.2" startTrans="0 0.2 0" endTrans="0 -0.03 0"/>

            <sound template="clackVar6" startTime="0.19" volumeScale="1.1" pitchScale="1" direction="-1" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <mulcher>
        <effects>
            <effect workAreaIndex="1">
                <effectNode effectClass="TypedMotionPathEffect" effectType="MULCHER" linkNode="mulcherEffectNode">
                    <motionPathEffect textureFilename="$data/vehicles/salek/mul1000/mulcherEffect01Array.dds" numRows="16" rowLength="18" minFade="0.15" shapeScale="0.3" maxShapeScale="1.2"/>
                </effectNode>
                <effectNode effectNode="smokeEmitter" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.5"/>
            </effect>
        </effects>
        <sounds>
            <work template="crushingStubbles" linkNode="mul1000_main_component1" />
        </sounds>
    </mulcher>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <animationNodes>
            <animationNode node="rollMain" rotSpeed="2500" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="5" />
        </animationNodes>
        <sounds>
            <start template="mulcherStart" />
            <work template="mulcherLoop" />
            <stop template="mulcherStop" />
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <collisionTrigger node="aiCollisionNode" width="1.6" height="0.8"/>
        <agentAttachment width="1.6" height="0.85" length="0.8" lengthOffset="0.05"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.68" maxX="0.8" minZ="-0.38" maxZ="0.4" yOffset="0.2"/>
    </foliageBending>

    <baseMaterial>
        <material name="mul1000_mat" baseNode="mul1000_vis">
            <shaderParameter name="colorMat0" value="SALEK_YELLOW1" material="0"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="mul1000_main_component1" node="0>" />
        <i3dMapping id="mul1000_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="ptoInputNode" node="0>0|0|2" />
        <i3dMapping id="ptoDetached" node="0>0|0|3" />
        <i3dMapping id="support" node="0>0|0|4" />
        <i3dMapping id="wheel01" node="0>0|1|0" />
        <i3dMapping id="redTriangle_02_01" node="0>0|2|0|0" />
        <i3dMapping id="redTriangle_02_02" node="0>0|2|0|1" />
        <i3dMapping id="rollerBack" node="0>0|3|0" />
        <i3dMapping id="rollMain" node="0>0|3|1" />
        <i3dMapping id="workAreaStart" node="0>0|4|0" />
        <i3dMapping id="workAreaWidth" node="0>0|4|1" />
        <i3dMapping id="workAreaHeight" node="0>0|4|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|4|3" />
        <i3dMapping id="smokeEmitter" node="0>0|5|0" />
        <i3dMapping id="mulcherEffectNode" node="0>0|5|1" />
        <i3dMapping id="aiMarkerLeft" node="0>0|6|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|6|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|6|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|6|3" />
    </i3dMappings>
</vehicle>
