﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="dynamicMountAttacherTrailer" 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>N20T</name>
        <specs>
            <combination xmlFilename="$data/vehicles/rostselmash/powerStream500/powerStream500.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutterTrailer</function>
        </functions>
        <image>$data/vehicles/nardi/n20T/store_n20T.png</image>
        <price>3500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>NARDI</brand>
        <category>cutterTrailers</category>
        <shopTranslationOffset>0 0.063 0</shopTranslationOffset>
        <shopRotationOffset>0.052 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>923904</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>172032</indexBufferMemoryUsage>
        <textureMemoryUsage>1179648</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutterTrailer</typeDesc>
        <filename>$data/vehicles/nardi/n20T/n20T.i3d</filename>
        <size width="3" length="9.2" lengthOffset="1.1"/>
        <components>
            <component centerOfMass="0 0.5 0" solverIterationCount="10" mass="1400"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

     <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="MITAS" saveId="MITAS_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/mitas/FL02/6_50_R10.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="wheelFrontLeft"  forcePointRatio="0.25" initialCompression="10" suspTravel="0.08" spring="43" damper="15"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/mitas/FL02/6_50_R10.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="wheelFrontRight" forcePointRatio="0.25" initialCompression="10" suspTravel="0.08" spring="43" damper="15" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/mitas/FL02/6_50_R10.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="wheelBackLeft"   forcePointRatio="0.25" initialCompression="10" suspTravel="0.08" spring="43" damper="15"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/mitas/FL02/6_50_R10.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.4" repr="wheelBackRight"  forcePointRatio="0.25" initialCompression="10" suspTravel="0.08" spring="43" damper="15" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <dynamicallyLoadedWheels>
            <dynamicallyLoadedWheel linkNode="wheelSpare" filename="$data/shared/wheels/tires/mitas/FL02/6_50_R10.xml" />
        </dynamicallyLoadedWheels>

        <hubs>
            <color0 useBaseColor="true"/>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.05 0.15 0.15" offset="0.012" />
            <hub linkNode="wheelBackLeft"   filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.05 0.15 0.15" offset="0.012" />
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.05 0.15 0.15" offset="0.012" />
            <hub linkNode="wheelBackRight"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.05 0.15 0.15" offset="0.012" />
            <hub linkNode="wheelSpare"      filename="$data/shared/wheels/hubs/hubImperador_n0_1.xml" isLeft="false" scale="0.02 0.07 0.07">
                <color1>-</color1>
            </hub>
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.585"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.13"/>
    </attachable>

    <licensePlates>
        <licensePlate node="licensePlate" position="BACK" preferedType="SQUARISH" placementArea="0.08 0.2 0.2 0.2"/>
    </licensePlates>

    <lights>
        <sharedLight linkNode="redRound_03_left"          filename="$data/shared/assets/reflectors/lizard/redRound_02.xml" />
        <sharedLight linkNode="redRound_03_right"         filename="$data/shared/assets/reflectors/lizard/redRound_02.xml" />
        <sharedLight linkNode="redTriangle_02_left"       filename="$data/shared/assets/reflectors/lizard/redTriangle_01.xml" />
        <sharedLight linkNode="redTriangle_02_right"      filename="$data/shared/assets/reflectors/lizard/redTriangle_01.xml" />
        <sharedLight linkNode="yellowRound_02_frontLeft"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="yellowRound_02_frontRight" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="yellowRound_02_backLeft"   filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="yellowRound_02_backRight"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1"       lightTypes="0" />
                <light node="licensePlateLightHigh" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
        <beaconLights>
            <beaconLight node="beaconLight03" filename="$data/shared/assets/beaconLights/lizard/beaconLight03.xml" />
        </beaconLights>

       <defaultLights>
            <defaultLight shaderNode="backlightGlass_static" lightTypes="0" />
        </defaultLights>

        <turnLights>
            <turnLightLeft  shaderNode="turnlightLeftGlass_static" />
            <turnLightRight shaderNode="turnlightRightGlass_static" />
        </turnLights>

        <brakeLights>
            <brakeLight shaderNode="backlightGlass_static" />
        </brakeLights>
    </lights>

    <dynamicallyLoadedParts>
        <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>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.6" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.6" diameter="0.02" straighteningFactor="1">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" adapterNode="electric_detached" length="1.6" diameter="0.01" straighteningFactor="1">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="n20T_main_component1" jointNode="dynamicMountTrigger" forceAcceleration="1000" mountType="TYPE_AUTO_ATTACH_XZ" transferMass="true">
        <lockPosition xmlFilename="vehicles/nardi/n20T/n20T.xml" jointNode="dynamicMountTriggerLock" />
    </dynamicMountAttacher>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="0">
                    <foldingPart animationName="folding" speedScale="1.0" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="moveSupport">
            <part node="supportArmBolt"  startTime="0.00" endTime="0.05" startTrans="-0.076 0.452 3.897" endTrans="-0.076 0.563 3.897" />
            <part node="supportArm"      startTime="0.03" endTime="0.30" startRot="60 0 0" endRot="0 0 0" tangentType="spline" />
            <part node="supportArmBolt"  startTime="0.30" endTime="0.35" startTrans="-0.076 0.563 3.897" endTrans="-0.076 0.452 3.897" />
            <part node="supportArmCrank" startTime="0.30" endTime="1.00" startRot="0 1080 0" endRot="0 0 0" />
            <part node="supportArmPart"  startTime="0.30" endTime="1.00" startTrans="-0.043 0.257 0.001" endTrans="-0.043 0.12 0.001" />
            <part node="handbrake"       startTime="0.70" endTime="1.00" startRot="0 0 0" endRot="-50 0 0" />

            <sound template="clackVar2" startTime="0.9" direction="1" volumeScale="3.0" pitchScale="1.2" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.24" direction="-1" volumeScale="3.0" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="clackVar3" startTime="0.2" direction="-1" volumeScale="3.0" pitchScale="1.4" linkNode="attacherJoint"/>
        </animation>

        <animation name="folding">
            <part node="turntableMoveBolt"      startTime="0.00" endTime="0.00" visibility="true"/>
            <part node="turntableMoveBolt"      startTime="0.01" endTime="0.20" visibility="false"/>
            <part node="turntableLockArm"       startTime="0.05" endTime="0.15" startRot="0 0 0" endRot="0 0 20" tangentType="spline" />
            <part node="turntableLock"          startTime="0.15" endTime="0.30" startRot="0 0 0" endRot="60 0 0" tangentType="spline" />

            <part node="turntableSplint"        startTime="0.00" endTime="0.00" visibility="true"/>
            <part node="turntableSplint"        startTime="0.01" endTime="0.20" visibility="false"/>
            <part node="turntableBolt"          startTime="0.10" endTime="0.30" startTrans="0.090 0.589 3.755" endTrans="0.090 0.541 3.755"/>
            <part node="turntableBolt"          startTime="0.70" endTime="0.90" startTrans="0.090 0.589 3.755" endTrans="0.090 0.541 3.755"/>

            <part node="turntable"              startTime="0.50" endTime="6.00" startRot="0 0 0" endRot="0 90 0" tangentType="spline" />
            <part node="turntableFlip"          startTime="6.00" endTime="8.50" startRot="0 0 0" endRot="0 0 -25" />
            <part node="turntableMove"          startTime="6.00" endTime="8.50" startTrans="0 0 0" endTrans="0.85 0 0" />

            <sound template="defaultHydraulicSound" startTime="0.8" endTime="5.7" volumeScale="2.5" pitchScale="0.7"/>
            <sound template="defaultHydraulicSound" startTime="6" endTime="8.4" direction="-1" volumeScale="2.0" pitchScale="1"/>
            <sound template="defaultHydraulicSound" startTime="6.2" endTime="8.4" direction="1" volumeScale="2.0" pitchScale="1"/>
            <sound template="clackVar1" startTime="0.8" direction="1" volumeScale="3.0" pitchScale="1.4"/>
            <sound template="clackVar3" startTime="0.8" direction="1" volumeScale="3.0" pitchScale="0.8"/>
            <sound template="clackVar1" startTime="0.9" direction="-1" volumeScale="3.0" pitchScale="1.8"/>
            <sound template="clackVar4" startTime="0.9" direction="-1" volumeScale="3.0" pitchScale="0.7"/>
            <sound template="clackVar3" startTime="5.7" direction="1" volumeScale="4.0" pitchScale="0.8" />
            <sound template="clackVar2" startTime="5.7" direction="1" volumeScale="3.0" pitchScale="1"/>
            <sound template="clackVar1" startTime="5.9" direction="-1" volumeScale="3.0" pitchScale="0.8"/>
            <sound template="clackVar1" startTime="6.35" direction="1" volumeScale="3.0" pitchScale="1.3"/>
            <sound template="metalClose" startTime="8.35" direction="1" volumeScale="3.0" pitchScale="0.6"/>
            <sound template="clackVar2" startTime="8.35" direction="-1" volumeScale="3.0" pitchScale="1"/>
            <sound template="clackVar1" startTime="8.35" direction="-1" volumeScale="3.0" pitchScale="1"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="turntable">
                <dynamicMountAttacher value="true" />
            </movingTool>
            <movingTool node="turntableFlip" playSound="true" >
                <dependentPart node="turntableFlipHydraulic" />
                <dynamicMountAttacher value="true" />
            </movingTool>
            <movingTool node="turntableMove" playSound="true" >
                <dynamicMountAttacher value="true" />
            </movingTool>
            <movingTool node="extensionBack" playSound="true">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.4" iconName="CRANE_ARM2_ROTATE_X" />
                <translation transSpeed="1.5" transAcceleration="10" transMin="-2.685" transMax="-1.443" translationAxis="3" startTrans="-1.443" />
            </movingTool>
            <movingTool node="handbrake" playSound="true" >
                <dependentPart node="handbrakeHydraulic" />
                <dependentPart node="handbrakePart02" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="turntableFlipHydraulic" referencePoint="turntableFlipHydraulicRef" referenceFrame="turntableFlipHydraulicRef">
                <translatingPart node="turntableFlipHydraulicPunch" />
            </movingPart>
            <movingPart node="handbrakeHydraulic" referencePoint="handbrakeHydraulicRef" referenceFrame="handbrakeHydraulicRef" scaleZ="true" />
            <movingPart node="handbrakePart02" referencePoint="handbrakePart02Ref" referenceFrame="handbrakePart02Ref" scaleZ="true">
                <dependentPart node="handbrakePart02Hydraulic" />
            </movingPart>
            <movingPart node="handbrakePart02Hydraulic" referencePoint="handbrakePart02HydraulicRef" referenceFrame="handbrakePart02HydraulicRef">
                <translatingPart node="handbrakePart02HydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="extensionBack"/>
        </sounds>
    </cylindered>

    <designConfigurations title="$l10n_configuration_spareWheel">
        <designConfiguration name="$l10n_configuration_valueNo" price="0">
            <objectChange node="wheelSpareSupport" visibilityActive="false" />
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueYes" price="500">
            <objectChange node="wheelSpareSupport" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.8" height="2.2" length="9" lengthOffset="1.4"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.9" maxX="0.9" minZ="-3.3" maxZ="1.55" yOffset="0.4" />
        <bendingNode minX="-1.15" maxX="1.15" minZ="-0.9" maxZ="0.5" yOffset="0.35" />
        <bendingNode minX="-0.2" maxX="0.2" minZ="1.55" maxZ="5.3" yOffset="0.35" />
    </foliageBending>

    <baseMaterial>
        <material name="n20T_mat" baseNode="n20T_vis">
            <shaderParameter name="colorMat0" value="SHARED_GREYDARK"/>
            <shaderParameter name="colorMat1" value="SHARED_GREYDARK"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="0" useDefaultColors="true" defaultColorIndex="6" title="$l10n_configuration_chassisColor">
        <baseMaterialConfiguration name="New Holland" color="NEWHOLLAND_YELLOW1"/>
        <baseMaterialConfiguration name="Rostselmash" color="ROSTSELMASH_RED1"/>
        <material name="n20T_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <designMaterialConfigurations price="0" useDefaultColors="true" defaultColorIndex="6" title="$l10n_configuration_extensionColor">
        <designMaterialConfiguration name="New Holland" color="NEWHOLLAND_YELLOW1"/>
        <designMaterialConfiguration name="Rostselmash" color="ROSTSELMASH_RED1"/>
        <material name="n20T_mat" shaderParameter="colorMat1" />
    </designMaterialConfigurations>

    <rimColorConfigurations price="0" useDefaultColors="true" defaultColorIndex="0">
        <rimColorConfiguration name="$l10n_ui_colorSilver" color="SHARED_WHITE1" material="18" price="0"/>
        <rimColorConfiguration name="New Holland" color="NEWHOLLAND_YELLOW1"/>
        <rimColorConfiguration name="CLAAS" color="CLAAS_RED1"/>
    </rimColorConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="n20T_main_component1" node="0>" />
        <i3dMapping id="n20T_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0" />
        <i3dMapping id="supportArmPart" node="0>0|0|1|0|0" />
        <i3dMapping id="supportColPart" node="0>0|0|1|0|0|0" />
        <i3dMapping id="supportArmCrank" node="0>0|0|1|0|1" />
        <i3dMapping id="wheelSupport" node="0>0|0|1|0|2" />
        <i3dMapping id="supportArmBolt" node="0>0|0|1|1" />
        <i3dMapping id="handbrake" node="0>0|0|1|2" />
        <i3dMapping id="handbrakeHydraulicRef" node="0>0|0|1|2|0" />
        <i3dMapping id="handbrakePart02" node="0>0|0|1|2|1" />
        <i3dMapping id="handbrakePart02Hydraulic" node="0>0|0|1|2|1|0" />
        <i3dMapping id="handbrakePart02HydraulicPunch" node="0>0|0|1|2|1|0|0" />
        <i3dMapping id="handbrakePart02HydraulicRef" node="0>0|0|1|2|2" />
        <i3dMapping id="handbrakeHydraulic" node="0>0|0|1|3" />
        <i3dMapping id="handbrakePart02Ref" node="0>0|0|1|4" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|2|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|2|1|0|0" />
        <i3dMapping id="electric_detached" node="0>0|0|2|2" />
        <i3dMapping id="electric" node="0>0|0|2|3" />
        <i3dMapping id="wheelFrontLeft" node="0>0|1|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|1|2" />
        <i3dMapping id="wheelBackRight" node="0>0|1|3" />
        <i3dMapping id="turntable" node="0>0|2|0" />
        <i3dMapping id="turntableFlip" node="0>0|2|0|0" />
        <i3dMapping id="turntableMoveRot" node="0>0|2|0|0|0" />
        <i3dMapping id="turntableMove" node="0>0|2|0|0|0|0" />
        <i3dMapping id="yellowRound_02_frontLeft" node="0>0|2|0|0|0|0|0" />
        <i3dMapping id="yellowRound_02_backLeft" node="0>0|2|0|0|0|0|1" />
        <i3dMapping id="dynamicMountTriggerLock" node="0>0|2|0|0|0|0|2" />
        <i3dMapping id="turntableMove_decals" node="0>0|2|0|0|0|0|3" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|2|0|0|0|0|4" />
        <i3dMapping id="movingTableCollision" node="0>0|2|0|0|0|0|5" />
        <i3dMapping id="turntableMoveColPart01" node="0>0|2|0|0|0|0|6" />
        <i3dMapping id="turntableMoveBolt" node="0>0|2|0|0|0|0|7" />
        <i3dMapping id="turntableFlipHydraulicRef" node="0>0|2|0|0|1" />
        <i3dMapping id="yellowRound_02_frontRight" node="0>0|2|0|0|2" />
        <i3dMapping id="yellowRound_02_backRight" node="0>0|2|0|0|3" />
        <i3dMapping id="turntableFlipHydraulic" node="0>0|2|0|1" />
        <i3dMapping id="turntableFlipHydraulicPunch" node="0>0|2|0|1|0" />
        <i3dMapping id="extensionBack" node="0>0|2|0|2" />
        <i3dMapping id="redTriangle_02_left" node="0>0|2|0|2|0|0|0" />
        <i3dMapping id="redTriangle_02_right" node="0>0|2|0|2|0|0|1" />
        <i3dMapping id="redRound_03_left" node="0>0|2|0|2|0|0|2" />
        <i3dMapping id="redRound_03_right" node="0>0|2|0|2|0|0|3" />
        <i3dMapping id="backlightGlass_static" node="0>0|2|0|2|0|1|1" />
        <i3dMapping id="turnlightLeftGlass_static" node="0>0|2|0|2|0|1|2" />
        <i3dMapping id="turnlightRightGlass_static" node="0>0|2|0|2|0|1|3" />
        <i3dMapping id="licensePlateLightGlass_static" node="0>0|2|0|2|0|1|5" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|0|2|0|2|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|0|2|0|2|1" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|0|2|0|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|0|2|0|3|1" />
        <i3dMapping id="beaconLight03" node="0>0|2|0|2|0|4" />
        <i3dMapping id="licensePlate" node="0>0|2|0|2|1" />
        <i3dMapping id="turntableLock" node="0>0|2|1" />
        <i3dMapping id="turntableLockArm" node="0>0|2|1|0" />
        <i3dMapping id="turntableBolt" node="0>0|2|2" />
        <i3dMapping id="turntableSplint" node="0>0|2|2|0" />
        <i3dMapping id="wheelSpareSupport" node="0>0|3|0" />
        <i3dMapping id="wheelSpare" node="0>0|3|0|0" />
    </i3dMappings>
</vehicle>
