﻿<?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 params="$l10n_storeItem_headerTrailer">DIRECT DISC 500 %s</name>
        <specs>
            <combination xmlFilename="$data/vehicles/claas/directDisc500/directDisc500.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutterTrailer</function>
        </functions>
        <image>$data/vehicles/claas/directDisc500Trailer/store_directDisc500Trailer.png</image>
        <price>4950</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CLAAS</brand>
        <category>cutterTrailers</category>
        <shopTranslationOffset>0 0.037 0</shopTranslationOffset>
        <shopRotationOffset>0.127 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>624128</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>116736</indexBufferMemoryUsage>
        <textureMemoryUsage>851968</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutterTrailer</typeDesc>
        <filename>$data/vehicles/claas/directDisc500Trailer/directDisc500Trailer.i3d</filename>
        <size width="3.0" length="11" lengthOffset="0.5"/>
        <components>
            <component centerOfMass="0 0.45 -2.5" solverIterationCount="20" mass="1200"/>
            <component centerOfMass="0 0 0" solverIterationCount="20" mass="500"/>
            <component centerOfMass="0 0 0" solverIterationCount="20" mass="300"/>
            <joint component1="1" component2="2" node="componentJoint" rotLimit="0 100 0" transLimit="0 0 0"/>
            <joint component1="2" component2="3" node="componentJointDrawbar" rotLimit="0 0 0" transLimit="0 0 0"/>
            <collisionPair component1="1" component2="3" enabled="false"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/300_80R15_3.xml" isLeft="true" hasTireTracks="true">
                        <physics restLoad="1.3" repr="wheelLeft"       forcePointRatio="0.25" initialCompression="20" suspTravel="0.10" spring="20" damper="20" frictionScale="3" mass="0.4"/>
                        <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">
                        <physics restLoad="1.2" repr="wheelRight"      forcePointRatio="0.25" initialCompression="20" suspTravel="0.10" spring="20" damper="20" frictionScale="3" mass="0.4"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/300_80R15_3.xml" isLeft="true" hasTireTracks="true">
                        <physics restLoad="1.1" repr="wheelLeftFront"  forcePointRatio="0.35" initialCompression="20" suspTravel="0.15" spring="20" damper="20" frictionScale="3" mass="0.4"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/300_80R15_3.xml" isLeft="false" hasTireTracks="true">
                        <physics restLoad="1.1" repr="wheelRightFront" forcePointRatio="0.35" initialCompression="20" suspTravel="0.15" spring="20" damper="20" frictionScale="3" mass="0.4"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor>CLAAS_RED1</rimColor>

        <hubs>
            <color0>CLAAS_GREEN1</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"       filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.15 0.2 0.2" />
            <hub linkNode="wheelRight"      filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.15 0.2 0.2" />
            <hub linkNode="wheelLeftFront"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.15 0.2 0.2" />
            <hub linkNode="wheelRightFront" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.15 0.2 0.2" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" rootNode="directDisc500_drawbar_component3" jointType="trailer" attacherHeight="0.9"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.3"/>
    </attachable>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="2|1" linkNode="electric_socket"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric_part"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric"  node="electric_in"  length="2" diameter="0.015" straighteningFactor="1.5">
            <objectChange node="electric_part" visibilityActive="true" visibilityInactive="false"/>
         </hose>
    </connectionHoses>

    <lights>
        <sharedLight linkNode="reflectorYellowRound_03"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_04"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_05"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_06"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_07"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_08"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_09"  filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="reflectorYellowRound_010" filename="$data/shared/assets/reflectors/lizard/yellowRound_03.xml" />
        <sharedLight linkNode="redTriangle_02"           filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="redTriangle_03"           filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="rear2ChamberLight_03"     filename="$data/shared/assets/lights/lizard/rearLight03_right.xml" />
        <sharedLight linkNode="rear2ChamberLight_04"     filename="$data/shared/assets/lights/lizard/rearLight03_left.xml" />
        <sharedLight linkNode="plateNumberLight02"       filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack"/>
                <turnLightRight node="turnLightRightBack"/>
                <brakeLight node="backLightsHigh1"/>
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.03 0.2 0.2 0.2"/>
    </licensePlates>

    <animations>
        <animation name="moveSupport">
            <part startTime="0" endTime="0.1" componentJointIndex="2" startRotLimit="80 0 0" endRotLimit="0 0 0"/>
            <part startTime="0" endTime="0.1" componentJointIndex="1" startRotLimit="0 100 0" endRotLimit="0 40 0"/>
            <part node="handBrake" startTime="0" endTime="0.5"  startRot="0 0 0"  endRot="75 0 0" />

            <sound template="latchSmall" startTime="0.49" volumeScale="0.3" pitchScale="1.6" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.49" volumeScale="1.5" pitchScale="1.2" linkNode="attacherJoint"/>
            <sound template="clackVar5" startTime="0.1" volumeScale="0.8" pitchScale="1.8" linkNode="attacherJoint"/>
        </animation>
        <animation name="attachCutter">
            <part node="closePart01" startTime="0" endTime="0.5"  startRot="0 0 0"  endRot="95 0 0" />

            <sound template="clackVar5" startTime="0.49" volumeScale="1.5" pitchScale="1.8" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="handBrake">
                <dependentPart node="handBrakePart01" />
                <dependentPart node="handBrakePart02" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="handBrakePart01" referencePoint="handBrakePart01Ref" referenceFrame="handBrakePart01Ref"/>
            <movingPart node="handBrakePart02" referencePoint="handBrakePart01Ref" referenceFrame="handBrakePart01Ref" scaleZ="true"/>
            <movingPart node="drawbarArm" referencePoint="drawbarArmRef" referenceFrame="drawbarArmRef" isActiveDirty="true" scaleZ="true" maxUpdateDistance="300"/>
            <movingPart node="drawbarBrakeArm01" referencePoint="drawbarBrakeArm01Ref" referenceFrame="drawbarBrakeArm01Ref" isActiveDirty="true" scaleZ="true" maxUpdateDistance="300"/>
            <movingPart node="drawbarBrakeArm02" referencePoint="drawbarBrakeArm02Ref" referenceFrame="drawbarBrakeArm02Ref" isActiveDirty="true" scaleZ="true" maxUpdateDistance="300"/>
            <movingPart node="axis" referencePoint="axisRef" referenceFrame="axisRef" isActiveDirty="true" limitedAxis="2" maxUpdateDistance="300"/>
        </movingParts>
    </cylindered>

    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="directDisc500_main_component1" jointNode="directDisc500_main_component1" forceAcceleration="30" mountType="TYPE_AUTO_ATTACH_XZ" transferMass="true">
        <animation name="attachCutter" speed="1"/>
        <lockPosition xmlFilename="vehicles/claas/directDisc500/directDisc500.xml" jointNode="cutterJointNodeDirectDisc" />
    </dynamicMountAttacher>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.8" height="2.2" length="9" lengthOffset="4" hasCollision="false"/>
        <agentAttachment jointNode="componentJoint" rotCenterWheelIndices="3 4" width="1.0" height="1.2" length="1" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.35" maxX="0.35" minZ="-0.3" maxZ="2" yOffset="0" node="drawbar" />
        <bendingNode minX="-0.55" maxX="0.55" minZ="-3.3" maxZ="3.5" yOffset="0.3" />
        <bendingNode minX="-1.2" maxX="1.2" minZ="-4.5" maxZ="-3.3" yOffset="0.3" />
    </foliageBending>

    <baseMaterial>
        <material name="directDisc500Trailer_mat" baseNode="directDisc500_vis">
            <shaderParameter name="colorMat0" value="CLAAS_GREEN1"/>
            <shaderParameter name="colorMat1" value="CLAAS_DARKGREY2"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="directDisc500_main_component1" node="0>" />
        <i3dMapping id="directDisc500_vis" node="0>0" />
        <i3dMapping id="wheelChock01" node="0>0|0|0" />
        <i3dMapping id="wheelChock02" node="0>0|0|1" />
        <i3dMapping id="componentJoint" node="0>0|0|2" />
        <i3dMapping id="componentJointArm" node="0>0|0|3" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="rear2ChamberLight_03" node="0>0|2|0|0" />
        <i3dMapping id="rear2ChamberLight_04" node="0>0|2|0|1" />
        <i3dMapping id="redTriangle_02" node="0>0|2|0|2" />
        <i3dMapping id="redTriangle_03" node="0>0|2|0|3" />
        <i3dMapping id="reflectorYellowRound_03" node="0>0|2|0|4" />
        <i3dMapping id="reflectorYellowRound_04" node="0>0|2|0|5" />
        <i3dMapping id="reflectorYellowRound_05" node="0>0|2|0|6" />
        <i3dMapping id="reflectorYellowRound_06" node="0>0|2|0|7" />
        <i3dMapping id="reflectorYellowRound_07" node="0>0|2|0|8" />
        <i3dMapping id="reflectorYellowRound_08" node="0>0|2|0|9" />
        <i3dMapping id="reflectorYellowRound_09" node="0>0|2|0|10" />
        <i3dMapping id="reflectorYellowRound_010" node="0>0|2|0|11" />
        <i3dMapping id="plateNumberLight02" node="0>0|2|0|12" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|1|1" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|2|1" />
        <i3dMapping id="licensePlateBack" node="0>0|3" />
        <i3dMapping id="armHydraulic" node="0>0|4|0" />
        <i3dMapping id="armHydraulicPunch" node="0>0|4|0|0" />
        <i3dMapping id="axis" node="0>0|4|1" />
        <i3dMapping id="drawbarArmRef" node="0>0|4|1|0" />
        <i3dMapping id="drawbarBrakeArm01Ref" node="0>0|4|1|1" />
        <i3dMapping id="drawbarBrakeArm02Ref" node="0>0|4|1|2" />
        <i3dMapping id="electric_in" node="0>0|4|1|6" />
        <i3dMapping id="electric_socket" node="0>0|4|1|7" />
        <i3dMapping id="electric_part" node="0>0|4|1|8" />
        <i3dMapping id="arm" node="0>0|4|2" />
        <i3dMapping id="armHydraulicRef" node="0>0|4|2|0" />
        <i3dMapping id="closePart01" node="0>0|4|3|0" />
        <i3dMapping id="closePart01RefFrame" node="0>0|4|4" />
        <i3dMapping id="cutterJointNodeDirectDisc" node="0>0|5|0" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|5|1" />
        <i3dMapping id="directDisc500_axis_component2" node="1>" />
        <i3dMapping id="componentJointDrawbar" node="1>0" />
        <i3dMapping id="wheelLeftFront" node="1>1|0" />
        <i3dMapping id="wheelRightFront" node="1>1|1" />
        <i3dMapping id="axisRef" node="1>2" />
        <i3dMapping id="directDisc500_drawbar_component3" node="2>" />
        <i3dMapping id="attacherJoint" node="2>0" />
        <i3dMapping id="drawbar" node="2>1" />
        <i3dMapping id="handBrake" node="2>1|0" />
        <i3dMapping id="handBrakePart01" node="2>1|0|0" />
        <i3dMapping id="handBrakePart02" node="2>1|0|0|0" />
        <i3dMapping id="handBrakePart01Ref" node="2>1|1" />
        <i3dMapping id="drawbarArm" node="2>1|2" />
        <i3dMapping id="drawbarBrakeArm01" node="2>1|3" />
        <i3dMapping id="drawbarBrakeArm02" node="2>1|4" />
    </i3dMappings>
</vehicle>
