﻿<?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">CORIO 1275 C %s</name>
        <specs>
            <combination xmlFilename="$data/vehicles/claas/corio1275C/corio1275C.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutterTrailer</function>
        </functions>
        <image>$data/vehicles/claas/corio1275CTrailer/store_corio1275CTrailer.png</image>
        <price>12500</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>
        <shopLoadingDelay initial="0.3"/>
        <vertexBufferMemoryUsage>685312</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>147456</indexBufferMemoryUsage>
        <textureMemoryUsage>655360</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutterTrailer</typeDesc>
        <filename>$data/vehicles/claas/corio1275CTrailer/corio1275CTrailer.i3d</filename>
        <size width="3.5" length="14"/>
        <components>
          <component centerOfMass="0 0.45 -3.4"  solverIterationCount="10" mass="1000"/>
          <component centerOfMass="0 0 0" solverIterationCount="10" mass="800"/>
          <component solverIterationCount="10" mass="500"/>
          <joint component1="1" component2="2" node="axisJoint" rotLimit="0 90 0" transLimit="0 0 0" />
          <joint component1="2" component2="3" node="drawbarJoint" rotLimit="30 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

     <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/10_80R12.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="wheelFrontLeft"  forcePointRatio="0.2" initialCompression="25" suspTravel="0.05" spring="50" damper="30" frictionScale="1.5"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/10_80R12.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="wheelFrontRight" forcePointRatio="0.2" initialCompression="25" suspTravel="0.05" spring="50" damper="30" frictionScale="1.5"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/380_55R17.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.5" repr="wheelBackLeft"   forcePointRatio="0.4" initialCompression="25" suspTravel="0.17" spring="20" damper="30" frictionScale="1.8"/>
                        <wheelChock/>
                        <wheelChock isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/380_55R17.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.5" repr="wheelBackRight"  forcePointRatio="0.4" initialCompression="25" suspTravel="0.17" spring="20" damper="30" frictionScale="1.8"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor>CLAAS_RED1</rimColor>

        <hubs>
            <color0>CLAAS_DARKGREY2</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.1 0.15 0.15" />
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.1 0.15 0.15" />
            <hub linkNode="wheelBackLeft"   filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.15 0.2 0.2" />
            <hub linkNode="wheelBackRight"  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" jointType="trailer" rootNode="corio_drawbar_component3" attacherHeight="0.65"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.35"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric"  node="electricIn01"  length="1" diameter="0.008" straighteningFactor="2">
            <objectChange node="electricIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electricIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="rear3ChamberLight_03" filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="rear3ChamberLight_04" filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
        <sharedLight linkNode="turnLight01_left"     filename="$data/shared/assets/lights/lizard/turnLight01_left.xml" />
        <sharedLight linkNode="turnLight01_right"    filename="$data/shared/assets/lights/lizard/turnLight01_right.xml" />
        <sharedLight linkNode="redRound_01"          filename="$data/shared/assets/reflectors/lizard/redRound_02.xml" />
        <sharedLight linkNode="redRound_02"          filename="$data/shared/assets/reflectors/lizard/redRound_02.xml" />
        <sharedLight linkNode="redRound_03"          filename="$data/shared/assets/reflectors/lizard/redRound_02.xml" />
        <sharedLight linkNode="redRound_04"          filename="$data/shared/assets/reflectors/lizard/redRound_02.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="yellowRectangle_01"   filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="yellowRectangle_02"   filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="yellowRectangle_03"   filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="yellowRectangle_04"   filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="yellowRound_01"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_01"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_02"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_03"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_04"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_05"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_06"       filename="$data/shared/assets/reflectors/lizard/yellowRound_01.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>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.08 0.2 0.15 0.2"/>
    </licensePlates>

    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="corio_main_component1" jointNode="corio_main_component1" forceAcceleration="500" mountType="TYPE_AUTO_ATTACH_XZ" transferMass="true">
        <lockPosition xmlFilename="vehicles/claas/corio1275C/corio1275C.xml" jointNode="cutterJointNodeCorio" />
    </dynamicMountAttacher>

    <animations>
        <animation name="moveSupport">
            <part componentJointIndex="2" startTime="0.0" endTime="0.15" startRotLimit="30 0 0" endRotLimit="5 0 0" />

            <sound template="clackVar5" startTime="0.1" volumeScale="1.3" pitchScale="1.7" />
        </animation>
    </animations>

    <cylindered>
        <movingParts>
          <movingPart node="springArm" referencePoint="springArmRef" referenceFrame="springArmRef" isActiveDirty="true" maxUpdateDistance="300"/>
          <movingPart node="spring" referencePoint="springArmRef" referenceFrame="springArmRef" isActiveDirty="true" scaleZ="true" maxUpdateDistance="300"/>
          <movingPart node="drawbarPart" referencePoint="drawbarPartRef" referenceFrame="drawbarPartRef" isActiveDirty="true" scaleZ="true" maxUpdateDistance="300"/>
        </movingParts>
    </cylindered>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.8" height="2.2" length="10.6" lengthOffset="-3.9" hasCollision="false"/>
        <agentAttachment jointNode="axisJoint" rotCenterWheelIndices="3 4" width="2.4" height="1.2" length="1" lengthOffset="6.3"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.3" maxX="0.3" minZ="-0.3" maxZ="3.8" yOffset="0" node="drawbar" />
        <bendingNode minX="-1.3" maxX="1.3" minZ="-6.7" maxZ="2.8" yOffset="0.4" />
    </foliageBending>

    <baseMaterial>
        <material name="claasSWW_mat" baseNode="corio_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="corio_main_component1" node="0>" />
        <i3dMapping id="corio_vis" node="0>0" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|0" />
        <i3dMapping id="wheelBackRight" node="0>0|0|1" />
        <i3dMapping id="rear3ChamberLight_03" node="0>0|1|0|0" />
        <i3dMapping id="rear3ChamberLight_04" node="0>0|1|0|1" />
        <i3dMapping id="turnLight01_left" node="0>0|1|0|2" />
        <i3dMapping id="turnLight01_right" node="0>0|1|0|3" />
        <i3dMapping id="redRound_01" node="0>0|1|0|4" />
        <i3dMapping id="redRound_02" node="0>0|1|0|5" />
        <i3dMapping id="redTriangle_02" node="0>0|1|0|6" />
        <i3dMapping id="redTriangle_03" node="0>0|1|0|7" />
        <i3dMapping id="yellowRound_01" node="0>0|1|0|8" />
        <i3dMapping id="yellowRound_02" node="0>0|1|0|9" />
        <i3dMapping id="yellowRound_05" node="0>0|1|0|10" />
        <i3dMapping id="yellowRound_06" node="0>0|1|0|11" />
        <i3dMapping id="redRound_03" node="0>0|1|0|12" />
        <i3dMapping id="redRound_04" node="0>0|1|0|13" />
        <i3dMapping id="backLightsHigh1" node="0>0|1|1|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|1|1" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|2|1" />
        <i3dMapping id="beaconLight01" node="0>0|1|3" />
        <i3dMapping id="axisJoint" node="0>0|2" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|3" />
        <i3dMapping id="cutterJointNodeCorio" node="0>0|4" />
        <i3dMapping id="licensePlateBack" node="0>0|5" />
        <i3dMapping id="corio_axis_component2" node="1>" />
        <i3dMapping id="axis" node="1>0" />
        <i3dMapping id="springArm" node="1>0|0" />
        <i3dMapping id="spring" node="1>0|0|0" />
        <i3dMapping id="drawbarPartRef" node="1>0|2" />
        <i3dMapping id="drawbarJoint" node="1>1" />
        <i3dMapping id="wheelFrontLeft" node="1>2" />
        <i3dMapping id="wheelFrontRight" node="1>3" />
        <i3dMapping id="yellowRound_03" node="1>4|0" />
        <i3dMapping id="yellowRound_04" node="1>4|1" />
        <i3dMapping id="corio_drawbar_component3" node="2>" />
        <i3dMapping id="drawbar" node="2>0" />
        <i3dMapping id="drawbarPart" node="2>0|0" />
        <i3dMapping id="springArmRef" node="2>0|1" />
        <i3dMapping id="attacherJoint" node="2>0|2" />
        <i3dMapping id="drawbar_vis" node="2>0|3" />
        <i3dMapping id="electricIn01" node="2>0|4" />
        <i3dMapping id="electricIn01_detached" node="2>0|5" />
        <i3dMapping id="electricIn01_detachedAdapter" node="2>0|5|0" />
        <i3dMapping id="yellowRectangle_01" node="2>1|0" />
        <i3dMapping id="yellowRectangle_02" node="2>1|1" />
        <i3dMapping id="yellowRectangle_03" node="2>1|2" />
        <i3dMapping id="yellowRectangle_04" node="2>1|3" />
    </i3dMappings>
</vehicle>
