<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="implementDynamicMountAttacher" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) THOMAS-MODDING, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_frontloaderBaleFork</name>
        <specs>
            <combination filterCategory="frontLoaders"/>
            <combination filterCategory="frontLoaderVehicles"/>
            <combination modName="FS25_Fiat110_90"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderBaleFork</function>
        </functions>
        <storePacks>
            <storePack>STARTER_FORAGE</storePack>
        </storePacks>
        <image>Stores/store_BaleSpike.png</image>
        <price>600</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SIGMA4</brand>
        <category>frontLoaderTools</category>        
        <vertexBufferMemoryUsage>84224</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>27648</indexBufferMemoryUsage>
        <textureMemoryUsage>1179648</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>i3d/BaleSpike.i3d</filename>
        <size width="1.65" length="1.2" height="0.75" lengthOffset="0.1"/>
        <components>
            <component centerOfMass="0 0.64 0.5" solverIterationCount="10" mass="100" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>


    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint"  jointType="Grifone7090tool_ready" />
        </inputAttacherJoints>
    </attachable>

    <dynamicMountAttacher node="0>">
        <fork node="CollFork1" />
        <fork node="CollFork2" />
    </dynamicMountAttacher>


    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="0" turnOnFoldDirection="-1">
                    <foldingPart animationName="folding" speedScale="1.0"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="Ring1" startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="0 0 135"/>
            <part node="Ring2" startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="0 0 -135"/>
            <part node="cotter_pin" startTime="1.0" endTime="2.0" startTrans="0 0 0" endTrans="0 0.031 0"/>
            <part node="Pin1" startTime="2.0" endTime="3.0" startTrans="0 0 0" endTrans="-0.1 0 0"/>
            <part node="Pin2" startTime="2.0" endTime="3.0" startTrans="0 0 0" endTrans="0.1 0 0"/>
            <part node="Spike"  startTime="3.0" endTime="4.0" startRot="0 0 0"  endRot="-90 0 0"/>
            <part node="Moving1"  startTime="3.0" endTime="4.0" startTrans="0 0.07 -0.235"  endTrans="0 0.116 -0.282"/>
            <part node="Pin2" startTime="4.0" endTime="5.0" startTrans="0.1 0 0" endTrans="0 0 0"/>
            <part node="Pin1" startTime="4.0" endTime="5.0" startTrans="-0.1 0 0" endTrans="0 0 0"/>
            <part node="cotter_pin" startTime="5.0" endTime="6.0" startTrans="0 0.031 0" endTrans="0 0 0"/>
            <part node="Ring1" startTime="7.0" endTime="8.0" startRot="0 0 135" endRot="0 0 0"/>
            <part node="Ring2" startTime="7.0" endTime="8.0" startRot="0 0 -135" endRot="0 0 0"/>


            <sound template="clackVar3"              startTime="0.01" endTime="1.0" volumeScale="2"   pitchScale="1.2" fadeIn="0.1" fadeOut="0.1" />
            <sound template="clackVar1"              startTime="2.0" endTime="3.0" volumeScale="2"   pitchScale="1.2" fadeIn="0.1" fadeOut="0.1" />
            <sound template="clackVar6"             startTime="3.0" endTime="4.0"  volumeScale="2"   pitchScale="1.2" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="clackVar1"              startTime="4.0" endTime="5.0" volumeScale="2"   pitchScale="1.2" fadeIn="0.1" fadeOut="0.1" />
            <sound template="clackVar3"              startTime="7.0" endTime="8.0" volumeScale="2"   pitchScale="1.2" fadeIn="0.1" fadeOut="0.1" />
        </animation>
    </animations>

    <ai>
        <agentAttachment width="1.65" height="0.75" length="1.15" lengthOffset="0.1"/>
    </ai>

    <tensionBeltObject>
        <meshNodes>
            <meshNode node="tensionBeltMesh"/>
        </meshNodes>
    </tensionBeltObject>

    <foliageBending>
        <bendingNode node="baleSpike_main_component1" minX="-0.85" maxX="0.85" minZ="-0.5" maxZ="-0.2" yOffset="0.05" />
        <bendingNode node="Spike" minX="-0.5" maxX="0.5" minZ="1.308" maxZ="-0.2" yOffset="0.05" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90"  workMultiplier="2" fieldMultiplier="2" washDuration="1"/>

    <i3dMappings>
        <i3dMapping id="baleSpike_main_component1" node="0>" />
        <i3dMapping id="BaleSpike_vis" node="0>0" />
        <i3dMapping id="Decals_baleSpike" node="0>0|0" />
        <i3dMapping id="Moving" node="0>0|1" />
        <i3dMapping id="Moving1" node="0>0|1|0" />
        <i3dMapping id="Pin1" node="0>0|1|0|0" />
        <i3dMapping id="Pin2" node="0>0|1|0|1" />
        <i3dMapping id="cotter_pin" node="0>0|1|0|2" />
        <i3dMapping id="Ring1" node="0>0|1|0|2|0" />
        <i3dMapping id="Ring2" node="0>0|1|0|2|1" />
        <i3dMapping id="Spike" node="0>0|2" />
        <i3dMapping id="CollFork01" node="0>0|2|0" />
        <i3dMapping id="CollFork02" node="0>0|2|2" />
        <i3dMapping id="CollFork1" node="0>0|2|1" />
        <i3dMapping id="CollFork2" node="0>0|2|3" />
        <i3dMapping id="jointNode" node="0>0|2|4" />
        <i3dMapping id="attacherJoint" node="0>0|3" />
        <i3dMapping id="collisions" node="0>1" />
        <i3dMapping id="tensionBeltMesh" node="0>1|0" />
    </i3dMappings>
</vehicle>
