<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="dynamicMountAttacherTrailer" 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 params="$l10n_storeItem_headerTrailer">VARIO 620 %s</name>
        <specs>
            <combination xmlFilename="vario620Trailer.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutterTrailer</function>
        </functions>
        <image>store_vario620Trailer.png</image>
        <price>7950</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CLAAS</brand>
        <category>cutterTrailers</category>
        <shopTranslationOffset>0 0.003 0</shopTranslationOffset>
        <shopRotationOffset>0.313 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>415232</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>123392</indexBufferMemoryUsage>
        <textureMemoryUsage>786432</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutterTrailer</typeDesc>
        <filename>vario620Trailer.i3d</filename>
        <size width="3.5" length="12"/>
        <components>
            <component centerOfMass="0 0.5 -1" solverIterationCount="10" mass="2315"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

     <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/300_80R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="1.1" repr="wheelLeft"  forcePointRatio="0.3" initialCompression="25" suspTravel="0.12" spring="33" damper="40"/>
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/300_80R15_3.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="1.1" repr="wheelRight" forcePointRatio="0.3" initialCompression="25" suspTravel="0.12" spring="33" damper="40" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimMaterial materialTemplateName="CLAAS_RED1"/>

        <hubs>
            <color0>CLAAS_DARKGREY2</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.1 0.18 0.18" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.1 0.18 0.18" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.77"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.6"/>
    </attachable>

    <licensePlates>
        <licensePlate node="licensePlateBack"  position="BACK"  preferedType="SQUARISH" placementArea="0.03 0.15 0.08 0.15"/>
    </licensePlates>

    <lights>

        <sharedLight linkNode="rearLight10_left"   			filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="rearLight10_right"  			filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
		<sharedLight linkNode="sideMarker10Orange_left"   	filename="$data/shared/assets/lights/lizard/sideMarker10Orange.xml" />
        <sharedLight linkNode="sideMarker10Orange_right"  	filename="$data/shared/assets/lights/lizard/sideMarker10Orange.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="beaconLight01" speed="0.015" filename="$data/shared/assets/beaconLights/lizard/beaconLight06.xml" />
        </beaconLights>
    </lights>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electricNode_adapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric"  node="electricNode"  length="1" diameter="0.01" straighteningFactor="1.5" >
            <objectChange node="detachedHose" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="sww620_main_component1" jointNode="cutterJointNodeVario" forceAcceleration="500" mountType="TYPE_AUTO_ATTACH_XZ" transferMass="true">
        <lockPosition xmlFilename="$data/vehicles/claas/vario620/vario620.xml" jointNode="cutterJointNodeVario" />
    </dynamicMountAttacher>

    <animations>
        <animation name="moveSupport">
            <part node="supportCol"       startTime="0" endTime="1" startTrans="0 0.648 2.426" endTrans="0 0.261 2.426" />
            <part node="supportArm"       startTime="0" endTime="1" startTrans="0 0.183 0" endTrans="0 0 0" />
            <part node="supportArmWinder" startTime="0" endTime="1" startRot="0 720 0" endRot="0 -720 0" />

            <sound template="slideOpen"  startTime="0.99" direction="-1" volumeScale="1.6" pitchScale="1"   linkNode="attacherJoint"/>
            <sound template="slideOpen"  startTime="0.01" direction="1"  volumeScale="1.6" pitchScale="1"   linkNode="attacherJoint"/>
            <sound template="clackVar6"  startTime="0.01" direction="-1" volumeScale="1.3" pitchScale="1"   linkNode="attacherJoint"/>
            <sound template="sheetImp02" startTime="0.01" direction="-1" volumeScale="1"   pitchScale="1.5" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.8" height="2.2" length="10" lengthOffset="1.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.45" maxX="0.65" minZ="-5.7" maxZ="2.6" yOffset="0.4" />
        <bendingNode minX="-1.28" maxX="1.28" minZ="-2.5" maxZ="-1.5" yOffset="0.4" />
    </foliageBending>


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

    <i3dMappings>
        <i3dMapping id="sww620_main_component1" node="0>" />
        <i3dMapping id="sww620_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0|0" />
        <i3dMapping id="supportArmWinder" node="0>0|0|1|1" />
        <i3dMapping id="supportCol" node="0>0|0|1|2" />
        <i3dMapping id="electricNode" node="0>0|0|2|0" />
        <i3dMapping id="detachedHose" node="0>0|0|2|0|0" />
        <i3dMapping id="electricNode_adapter" node="0>0|0|2|0|0|0" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="wheelChock01" node="0>0|1|2" />
        <i3dMapping id="wheelChock02" node="0>0|1|3" />
        <i3dMapping id="reflectorYellowRound_03" node="0>0|2|0|0" />
        <i3dMapping id="reflectorYellowRound_04" node="0>0|2|0|1" />
        <i3dMapping id="reflectorYellowRound_05" node="0>0|2|0|2" />
        <i3dMapping id="reflectorYellowRound_06" node="0>0|2|0|3" />
        <i3dMapping id="reflectorYellowRound_07" node="0>0|2|0|4" />
        <i3dMapping id="reflectorYellowRound_08" node="0>0|2|0|5" />
        <i3dMapping id="reflectorYellowRound_09" node="0>0|2|0|6" />
        <i3dMapping id="reflectorYellowRound_10" node="0>0|2|0|7" />
        <i3dMapping id="reflectorYellowRound_11" node="0>0|2|0|8" />
        <i3dMapping id="reflectorYellowRound_12" node="0>0|2|0|9" />
        <i3dMapping id="redRound_03" node="0>0|2|0|10" />
        <i3dMapping id="redRound_04" node="0>0|2|0|11" />
        <i3dMapping id="redTriangle_01" node="0>0|2|0|12" />
        <i3dMapping id="redTriangle_02" node="0>0|2|0|13" />
        <i3dMapping id="rear3ChamberLight_03" node="0>0|2|0|14" />
        <i3dMapping id="rear3ChamberLight_04" node="0>0|2|0|15" />
        <i3dMapping id="sideMarker_10Orange" node="0>0|2|0|16" />
        <i3dMapping id="sideMarker_10Orange" node="0>0|2|0|17" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|2|1" />
        <i3dMapping id="beaconLight01" node="0>0|2|3" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|4" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|3" />
        <i3dMapping id="cutterJointNodeVario" node="0>0|4" />
        <i3dMapping id="licensePlateBack" node="0>0|6" />
		<i3dMapping id="rearLight10_left" node="0>0|2|0|14" />
		<i3dMapping id="rearLight10_right" node="0>0|2|0|15" />
		<i3dMapping id="sideMarker10Orange_left" node="0>0|2|0|16" />
		<i3dMapping id="sideMarker10Orange_right" node="0>0|2|0|17" />
    </i3dMappings>
</vehicle>
