﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="manureTrailer" 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>FRC 65</name>
        <specs>
            <neededPower>70</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_slurryContainer</function>
        </functions>
        <image>$data/vehicles/kotte/frc65/store_frc65.png</image>
        <price>36000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KOTTE</brand>
        <category>slurryTanks</category>
        <shopTranslationOffset>0 -0.537 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1539328</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>263168</indexBufferMemoryUsage>
        <textureMemoryUsage>1114112</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureBarrel</typeDesc>
        <filename>$data/vehicles/kotte/frc65/frc65.i3d</filename>
        <size width="4" length="13" height="4.2"/>
        <components>
            <component centerOfMass="0 0.6 -1.5" solverIterationCount="10" mass="4000" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" brand="TRELLEBORG" saveId="TRELLEBORG_BROAD" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/560_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.9" repr="wheelLeft"  forcePointRatio="0.5" initialCompression="5" suspTravel="0.15" spring="250" damper="50" transRatio="1.0" />
                        <wheelChock parkingNode="wheelChock03_01" isInverted="true"  scale="0.9 0.9 0.9"/>
                        <wheelChock parkingNode="wheelChock03_02" isInverted="false" scale="0.9 0.9 0.9"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/560_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.9" repr="wheelRight" forcePointRatio="0.5" initialCompression="5" suspTravel="0.15" spring="250" damper="50" transRatio="1.0" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" brand="CONTINENTAL" saveId="CONTINENTAL_BROAD" price="0">
                <wheels baseConfig="TRELLEBORG_BROAD">
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" >
                    <wheelChock parkingNode="wheelChock03_01" isInverted="true"  scale="0.9 0.9 0.9"/>
                    <wheelChock parkingNode="wheelChock03_02" isInverted="false" scale="0.9 0.9 0.9"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" />
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color0>SHARED_DA_METAL_BLACK</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.25 0.335 0.335" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.25 0.335 0.335" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="1.05"/>
        </inputAttacherJoints>
        <brakeForce force="0.9" />
        <support animationName="moveSupport" delayedOnAttach="false" detachAfterAnimation="false"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="0.8" diameter="0.007" straighteningFactor="1.0">
           <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airYellow" length="0.8" diameter="0.012" straighteningFactor="1.0">
           <objectChange node="airYellow_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleRed" node="airRed" length="0.8" diameter="0.012" straighteningFactor="1.0">
           <objectChange node="airRed_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" length="0.8" diameter="0.015" straighteningFactor="1.0">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.8" diameter="0.015" straighteningFactor="1.0">
           <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0"   linkNode="wheelChockSupport01_01"   filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0"   linkNode="wheelChockSupport01_02"   filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="1|1" linkNode="electric_connector"       filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|3" linkNode="airRed_connector"         filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|2" linkNode="airYellow_connector"      filename="$data/shared/connectionHoses/connectors.i3d" />
        <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>

    <licensePlates>
        <licensePlate node="licensePlate" position="BACK" preferedType="ELONGATED" placementArea="0.07 0.3 0.07 0.3" />
    </licensePlates>

    <lights>
        <sharedLight linkNode="rearLight11_left"           filename="$data/shared/assets/lights/lizard/rearLight11_left.xml" />
        <sharedLight linkNode="rearLight11_right"          filename="$data/shared/assets/lights/lizard/rearLight11_right.xml" />
        <sharedLight linkNode="sideMarker03_left"          filename="$data/shared/assets/lights/lizard/sideMarker03_left.xml" />
        <sharedLight linkNode="sideMarker03_right"         filename="$data/shared/assets/lights/lizard/sideMarker03_right.xml" />
        <sharedLight linkNode="plateNumberLight02_left"    filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />
        <sharedLight linkNode="plateNumberLight02_right"   filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

        <sharedLight linkNode="redTriangle_02_left"        filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="redTriangle_02_right"       filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_01" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_02" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_03" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_04" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_05" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_06" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_07" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_08" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_09" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_10" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_11" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_12" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_13" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_03_14" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh"        lightTypes="0" />
                <light node="licensePlateLightHigh" lightTypes="0" />
                <brakeLight node="backLightsHigh" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </high>
        </realLights>
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="axis"       direction="1" startTime="0.05" endTime="1.00" startRot="0 0 0" endRot="37 0 0" />
            <part node="supportCol" direction="1" startTime="0.00" endTime="0.01" startTrans="0.000 1.064 4.995" endTrans="0.000 0.550 4.995"/>
            <part node="supportCol" direction="1" startTime="0.01" endTime="0.95" startTrans="0.000 0.550 4.995" endTrans="0.000 1.064 4.995"/>

            <part node="axis"       direction="-1" startTime="0.5" endTime="1.0" startRot="0 0 0" endRot="37 0 0" />

            <sound template="hydraulicLayerTone" startTime="0.01" endTime="0.99" direction="1"  volumeScale="1"   pitchScale="0.7" />
            <sound template="hydraulicLayerTone" startTime="0.5"  endTime="0.99" direction="-1" volumeScale="1.1" pitchScale="0.6" />
            <sound template="cylinderPunch"      startTime="0.9"                 direction="1"  volumeScale="1.3" pitchScale="0.7" />
            <sound template="clackVar6"          startTime="0.99"                direction="1"  volumeScale="1.3" pitchScale="0.7" />
            <sound template="thudVar2"           startTime="0.5"                 direction="-1" volumeScale="2.5" pitchScale="0.7" />
            <sound template="sheetImp02"         startTime="0.5"                 direction="-1" volumeScale="2.2" pitchScale="0.7" />
            <sound template="foldStopMed02"      startTime="0.5"                 direction="-1" volumeScale="1.5" pitchScale="0.7" />
            <sound template="cylinderPunch"      startTime="0.5"                 direction="-1" volumeScale="1"   pitchScale="0.7" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="axis" wheelIndices="1 2">
                <dependentPart node="axisHydraulic"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="axisHydraulic" referencePoint="axisHydraulicRef" referenceFrame="axisHydraulicRef">
                <translatingPart node="axisHydraulicPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SLURRYTANK" capacity="65000">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillTrigger litersPerSecond="2000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxSubDivEdgeLength="4" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="800"/>

    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-6.1" maxZ="4.1" yOffset="0.7" />
        <bendingNode minX="-0.35" maxX="0.35" minZ="4.1" maxZ="5.95" yOffset="0.6" />
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.6" height="4" length="10.05" lengthOffset="1.35"/>
    </ai>

    <baseMaterial>
        <material name="frc65_mat" baseNode="frc65_vis">
            <shaderParameter name="colorMat0" value="KOTTE_GREEN1"/>
            <shaderParameter name="colorMat1" value="KOTTE_GREEN1"/>
            <shaderParameter name="colorMat2" value="KOTTE_RED1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="1000" useDefaultColors="true">
        <baseMaterialConfiguration color="KOTTE_GREEN1" name="$l10n_ui_colorGreen"/>
        <baseMaterialConfiguration color="KOTTE_GREEN2" name="$l10n_ui_colorGreenDark"/>
        <baseMaterialConfiguration color="KOTTE_YELLOW1" name="$l10n_ui_colorYellow"/>
        <baseMaterialConfiguration color="KOTTE_BLUE1" name="$l10n_ui_colorBlue"/>
        <material name="frc65_mat" shaderParameter="colorMat0" />
        <material name="frc65_mat" shaderParameter="colorMat1" />
    </baseMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="1" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="frc65_main_component1" node="0>" />
        <i3dMapping id="frc65_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportCol" node="0>0|0|1|0" />
        <i3dMapping id="electric" node="0>0|0|2|0" />
        <i3dMapping id="electric_detached" node="0>0|0|2|0|0" />
        <i3dMapping id="electric_connector" node="0>0|0|2|0|0|0" />
        <i3dMapping id="airRed" node="0>0|0|2|1" />
        <i3dMapping id="airRed_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="airRed_connector" node="0>0|0|2|1|0|0" />
        <i3dMapping id="airYellow" node="0>0|0|2|2" />
        <i3dMapping id="airYellow_detached" node="0>0|0|2|2|0" />
        <i3dMapping id="airYellow_connector" node="0>0|0|2|2|0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|3" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|3|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|2|3|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|4" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|4|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|2|4|0|0" />
        <i3dMapping id="wheelChockSupport01_01" node="0>0|0|3|0" />
        <i3dMapping id="wheelChockSupport01_02" node="0>0|0|3|1" />
        <i3dMapping id="wheelChock03_01" node="0>0|0|3|2" />
        <i3dMapping id="wheelChock03_02" node="0>0|0|3|3" />
        <i3dMapping id="rearLight11_left" node="0>0|1|0|0" />
        <i3dMapping id="rearLight11_right" node="0>0|1|0|1" />
        <i3dMapping id="redTriangle_02_left" node="0>0|1|0|2" />
        <i3dMapping id="redTriangle_02_right" node="0>0|1|0|3" />
        <i3dMapping id="sideMarker03_left" node="0>0|1|0|4" />
        <i3dMapping id="sideMarker03_right" node="0>0|1|0|5" />
        <i3dMapping id="plateNumberLight02_left" node="0>0|1|0|6" />
        <i3dMapping id="plateNumberLight02_right" node="0>0|1|0|7" />
        <i3dMapping id="reflectorYellowRound_03_01" node="0>0|1|0|8" />
        <i3dMapping id="reflectorYellowRound_03_02" node="0>0|1|0|9" />
        <i3dMapping id="reflectorYellowRound_03_03" node="0>0|1|0|10" />
        <i3dMapping id="reflectorYellowRound_03_04" node="0>0|1|0|11" />
        <i3dMapping id="reflectorYellowRound_03_05" node="0>0|1|0|12" />
        <i3dMapping id="reflectorYellowRound_03_06" node="0>0|1|0|13" />
        <i3dMapping id="reflectorYellowRound_03_07" node="0>0|1|0|14" />
        <i3dMapping id="reflectorYellowRound_03_08" node="0>0|1|0|15" />
        <i3dMapping id="reflectorYellowRound_03_09" node="0>0|1|0|16" />
        <i3dMapping id="reflectorYellowRound_03_10" node="0>0|1|0|17" />
        <i3dMapping id="reflectorYellowRound_03_11" node="0>0|1|0|18" />
        <i3dMapping id="reflectorYellowRound_03_12" node="0>0|1|0|19" />
        <i3dMapping id="reflectorYellowRound_03_13" node="0>0|1|0|20" />
        <i3dMapping id="reflectorYellowRound_03_14" node="0>0|1|0|21" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|1|0" />
        <i3dMapping id="backLightsHigh" node="0>0|1|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|3|1" />
        <i3dMapping id="axis" node="0>0|2|0" />
        <i3dMapping id="wheelLeft" node="0>0|2|0|0" />
        <i3dMapping id="wheelRight" node="0>0|2|0|1" />
        <i3dMapping id="axisHydraulicRef" node="0>0|2|0|2" />
        <i3dMapping id="axisHydraulic" node="0>0|2|1" />
        <i3dMapping id="axisHydraulicPunch" node="0>0|2|1|0" />
        <i3dMapping id="licensePlate" node="0>0|3" />
        <i3dMapping id="fillVolume" node="0>0|4|0" />
        <i3dMapping id="fillTrigger" node="0>0|4|1" />
        <i3dMapping id="exactFillRootNode" node="0>0|4|2" />
    </i3dMappings>
</vehicle>
