<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mixerWagon">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>SPIRMIX 220</name>
        <specs>
            <neededPower>80</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_feeder</function>
        </functions>
        <image>store_spirmix.dds</image>
        <price>28000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LUCAS</brand>
        <category>animals</category>
        <vertexBufferMemoryUsage>924932</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>145128</indexBufferMemoryUsage>
        <textureMemoryUsage>8738320</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mixerWagon</typeDesc>
        <filename>spirmix.i3d</filename>
        <size width="4.5" length="8" />
        <components>
            <component centerOfMass="0 0.6 0" solverIterationCount="10" mass="5880" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels>
                    <wheel filename="wheels/wheel.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="wheelLeft"  forcePointRatio="0.2" initialCompression="30" suspTravel="0.1" spring="72" damper="10" />
                    </wheel>
                    <wheel filename="wheels/wheel.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="2.2" repr="wheelRight" forcePointRatio="0.2" initialCompression="30" suspTravel="0.1" spring="72" damper="10" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.95"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce>0.9</brakeForce>
    </attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="pto" detachNode="ptoDetach" aboveAttacher="false" />
    </powerTakeOffs>

    <powerConsumer ptoRpm="540" neededMinPtoPower="15" neededMaxPtoPower="35" />

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

        <turnLights>
            <turnLightLeft shaderNode="turnLight_staticL" />
            <turnLightRight shaderNode="turnLight_staticR" />
        </turnLights>

		 <brakeLights>
            <brakeLight shaderNode="brakeLight_staticL" />
			<brakeLight shaderNode="brakeLight_staticR" />
        </brakeLights>
    </lights>

    <animations>
        <animation name="tipLeft">
            <part node="door" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 0.65491 0"/>
        </animation>
        <animation name="tipRight">
            <part node="door" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 0.65491 0"/>
        </animation>
        <animation name="moveSupport">
            <part node="support" startTime="0" duration="0.25" startTrans="0.55783 -0.73123 4.14143" endTrans="0.55783 -1.14675 4.14143" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="door">
                <dependentPart node="hydraulicDoor" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulicDoor" referencePoint="hydraulicDoorRef" referenceFrame="hydraulicDoorRef">
                <translatingPart node="hydraulicDoorPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="forage forage_mixing dryGrass_windrow silage straw" capacity="18000" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

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

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode2" width="2" length="4.0" />
                <node node="fillVolumeUnloadNode1" width="2" length="1.0" minHeight="1.2" priority="2" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable>
        <dischargeNode node="dischargeNodeLeft" emptySpeed="800" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.0" length="0.5"/>
            <effects>
                <effectNode effectNode="effectLeft" materialType="unloading" materialTypeId="1" defaultFillType="silage" delay="0.5" fadeInTime="0.5" fadeOutTime="0.5" extraDistanceNode="extraDistanceLeft"/>
            </effects>
        </dischargeNode>
        <dischargeNode node="dischargeNodeRight" emptySpeed="800" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.0" length="0.5"/>
            <effects>
                <effectNode effectNode="effectRight" materialType="unloading" materialTypeId="1" defaultFillType="silage" delay="0.5" fadeTime="0.5" fadeOutTime="0.5" extraDistanceNode="extraDistanceRight"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration name="$l10n_configuration_valueDefault" price="0">
                <trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipLeft" speedScale="1.0" />
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipRight" speedScale="1.0" />
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <mixerWagon fillUnitIndex="1" >
        <mixerWagonFillTypes>
            <mixerWagonFillType minPercentage="20" maxPercentage="75" name="dryGrass">
                <fillType fillType="dryGrass_windrow" />
            </mixerWagonFillType>
            <mixerWagonFillType minPercentage="20" maxPercentage="75" name="silage">
                <fillType fillType="silage" />
            </mixerWagonFillType>
            <mixerWagonFillType minPercentage="0" maxPercentage="30" name="straw">
                <fillType fillType="straw" />
            </mixerWagonFillType>
        </mixerWagonFillTypes>

        <baleTrigger node="baleTrigger" />

        <mixAnimationNodes>
            <animationNode node="mixerFront"   rotSpeed="-200" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="1" />
            <animationNode node="mixerBack"    rotSpeed="-200" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="1" />
        </mixAnimationNodes>
    </mixerWagon>

    <turnOnVehicle>
        <sounds>
            <work template="SILAGE_MIX_LOOP_01" linkNode="0>" />
            <start template="SILAGE_MIX_START_01" linkNode="0>" />
            <stop template="SILAGE_MIX_STOP_01" linkNode="0>" />
        </sounds>
    </turnOnVehicle>

    <tipOccluder>
        <occlusionArea start="tipOcclusionArea1Start" width="tipOcclusionArea1Width" height="tipOcclusionArea1Height" />
        <occlusionArea start="tipOcclusionArea2Start" width="tipOcclusionArea2Width" height="tipOcclusionArea2Height" />
    </tipOccluder>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-3.3" maxZ="2.6" yOffset="0.6" />
    </foliageBending>

    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="Spirmix_main_component1" node="0>" />
        <i3dMapping id="wheelLeft" node="0>0" />
        <i3dMapping id="wheelRight" node="0>1" />
        <i3dMapping id="attacherJoint" node="0>2|1" />
        <i3dMapping id="pto" node="0>2|4|0" />
        <i3dMapping id="ptoDetach" node="0>2|4|1" />
        <i3dMapping id="door" node="0>2|5|0" />
        <i3dMapping id="support" node="0>2|0" />
        <i3dMapping id="hydraulicDoor" node="0>2|6" />
        <i3dMapping id="hydraulicDoorRef" node="0>2|5|0|0" />
        <i3dMapping id="hydraulicDoorPunch" node="0>2|6|0" />
        <i3dMapping id="exactFillRootNode" node="0>2|12" />
        <i3dMapping id="fillVolume" node="0>2|3" />
        <i3dMapping id="fillVolumeUnloadNode1" node="0>2|13" />
        <i3dMapping id="fillVolumeUnloadNode2" node="0>2|14" />
        <i3dMapping id="effectLeft" node="0>2|15|0" />
        <i3dMapping id="effectRight" node="0>2|15|1" />
        <i3dMapping id="extraDistanceLeft" node="0>7" />
        <i3dMapping id="extraDistanceRight" node="0>8" />
        <i3dMapping id="dischargeNodeLeft" node="0>3" />
        <i3dMapping id="dischargeNodeRight" node="0>4" />
        <i3dMapping id="baleTrigger" node="0>5" />
        <i3dMapping id="mixerFront" node="0>2|7|0" />
        <i3dMapping id="mixerBack" node="0>2|7|1" />
        <i3dMapping id="tipOcclusionArea1Start" node="0>9|0|0" />
        <i3dMapping id="tipOcclusionArea1Width" node="0>9|0|1" />
        <i3dMapping id="tipOcclusionArea1Height" node="0>9|0|2" />
        <i3dMapping id="tipOcclusionArea2Start" node="0>9|1|0" />
        <i3dMapping id="tipOcclusionArea2Width" node="0>9|1|1" />
        <i3dMapping id="tipOcclusionArea2Height" node="0>9|1|2" />

        <i3dMapping id="backLightsHigh" node="0>2|2|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>2|2|2|1" />
        <i3dMapping id="turnLightRightBack" node="0>2|2|2|2" />
        <i3dMapping id="turnLight_staticL" node="0>2|2|1|0" />
        <i3dMapping id="turnLight_staticR" node="0>2|2|0|0" />
        <i3dMapping id="brakeLight_staticL" node="0>2|2|1|1" />
        <i3dMapping id="brakeLight_staticR" node="0>2|2|0|1" />
    </i3dMappings>
</vehicle>
