<?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>         
            <de>Schneidwerkswagen</de>           
            <en>Cutter Trailer</en>
        </name>
        <functions>
            <function>$l10n_function_cutterTrailer</function>
        </functions>
        <image>store_claasCuttertrailer.dds</image>
        <price>7900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CLAAS</brand>
        <category>cutterTrailers</category>
        <shopTranslationOffset>0 0.020 0</shopTranslationOffset>
        <shopRotationOffset>0.056 0 0</shopRotationOffset>
        <shopLoadingDelay initial="0.3"/>
        <vertexBufferMemoryUsage>134144</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>44544</indexBufferMemoryUsage>
        <textureMemoryUsage>983040</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutterTrailer</typeDesc>
        <filename>claasCuttertrailer.i3d</filename>
        <size width="2.4" length="14" height="1.3" lengthOffset="-0.65"/>
        <components>
            <component centerOfMass="-0.00 0.72 -0.36" solverIterationCount="30" mass="800"/>
            <component centerOfMass="-0.00 -0.05 0.04" solverIterationCount="30" mass="700"/>
            <component centerOfMass="0.00 0.04 -0.08" solverIterationCount="10" mass="100"/>
            <joint component1="1" component2="2" node="componentJointAxis"    rotLimit="0 180 0" transLimit="0 0 0"/>
            <joint component1="2" component2="3" node="componentJointDrawbar" rotLimit="0 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" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/260_70R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelFrontLeft"  useReprDirection="true" forcePointRatio="0.15" initialCompression="12" suspTravel="0.055" spring="110" damper="15" yOffset="0.025" frictionScale="1.8"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/260_70R15_3.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelFrontRight" useReprDirection="true" forcePointRatio="0.15" initialCompression="12" suspTravel="0.055" spring="110" damper="15" yOffset="0.025" frictionScale="1.8"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/260_70R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.3" repr="wheelBackLeft"   useReprDirection="true" forcePointRatio="0.15" initialCompression="12" suspTravel="0.055" spring="42" damper="15" yOffset="0.025" frictionScale="1.8"/>
                        <wheelChock parkingNode="wheelChock02_front" filename="$data/shared/assets/wheelChocks/wheelChock02.i3d"/>
                        <wheelChock parkingNode="wheelChock02_back"  filename="$data/shared/assets/wheelChocks/wheelChock02.i3d" isInverted="true"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/260_70R15_3.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.3" repr="wheelBackRight"  useReprDirection="true" forcePointRatio="0.15" initialCompression="12" suspTravel="0.055" spring="42" damper="15" yOffset="0.025" frictionScale="1.8"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.12 0.20 0.20" offset="0.005"/>
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.12 0.20 0.20" offset="0.005"/>
            <hub linkNode="wheelBackLeft"   filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.12 0.20 0.20" offset="0.005"/>
            <hub linkNode="wheelBackRight"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.12 0.20 0.20" offset="0.005"/>
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" rootNode="ClaasCuttertrailer_drawbar_component3" attacherHeight="0.65"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.2"/>
    </attachable>

    <licensePlates>
        <licensePlate node="licensePlate" position="BACK" preferedType="SQUARISH" placementArea="0.08 0.2 0.2 0.2"/>
    </licensePlates>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="2.2" diameter="0.008" straighteningFactor="0.2" adapterNode="electric_connector">
           <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0"   linkNode="wheelChockSupport01_front" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0"   linkNode="wheelChockSupport01_back"  filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="rearLightLeft" filename="$data/shared/assets/lights/lizard/rearLight66_left.xml"/> 
        <sharedLight linkNode="rearLightRight" filename="$data/shared/assets/lights/lizard/rearLight66_right.xml"/> 
        <sharedLight linkNode="rearLight23White" filename="$data/shared/assets/lights/lizard/rearLight23White.xml" lightTypes="0"/>

        <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/beaconLight12.xml"/>
        </beaconLights>
    </lights>

    <dynamicMountAttacher triggerNode="dynamicMountTrigger" rootNode="ClaasCuttertrailer_main_component1" jointNode="cutterJointNode" forceAcceleration="500" mountType="TYPE_AUTO_ATTACH_XZ" transferMass="true">
    </dynamicMountAttacher>

    <animations>
        <animation name="moveSupport">
             <part componentJointIndex="2" startTime="0.0" endTime="0.15" startRotLimit="25 0 0" endRotLimit="15 0 0" />
        </animation>
    </animations>

    <designConfigurations title="$l10n_configuration_beaconLight" isYesNoOption="true">
        <designConfiguration name="$l10n_configuration_valueNo" price="0">
            <objectChange node="beaconLight03" visibilityActive="false" />
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueYes" price="50">
            <objectChange node="beaconLight03" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="3 4" width="2.4" height="1.25" length="12.3" lengthOffset="2.35" hasCollision="false"/>
        <agentAttachment jointNode="componentJointAxis" rotCenterWheelIndices="1 2" width="2.4" height="1.25" length="1.2" lengthOffset="0.04"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.8" maxX="0.7" minZ="-8.2" maxZ="3.9" yOffset="0.4"/>
        <bendingNode minX="-1.22" maxX="1.22" minZ="-5.4" maxZ="-4.3" yOffset="0.4"/>
        <bendingNode minX="0.1" maxX="2.4" minZ="-0.3" maxZ="0.3" yOffset="-0.1" node="attacherJoint"/>
        <bendingNode minX="2.4" maxX="3.4" minZ="-0.5" maxZ="0.5" yOffset="-0.22" node="attacherJoint"/>
    </foliageBending>


    <rimColorConfigurations useDefaultColors="true">
        <rimColorConfiguration materialTemplateName="CLAAS_RED1"/>
    </rimColorConfigurations>

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

    <i3dMappings>
        <i3dMapping id="ClaasCuttertrailer_main_component1" node="0>" />
        <i3dMapping id="wheelChock02_front" node="0>0|1|2|0" />
        <i3dMapping id="wheelChock02_back" node="0>0|1|2|1" />
        <i3dMapping id="wheelChockSupport01_front" node="0>0|1|2|2" />
        <i3dMapping id="wheelChockSupport01_back" node="0>0|1|2|3" />
        <i3dMapping id="wheelBackLeft" node="0>0|1|0" />
        <i3dMapping id="wheelBackRight" node="0>0|1|1" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|0|12|0" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|3|1" />
        <i3dMapping id="beaconLight03" node="0>0|2|2" />
        <i3dMapping id="componentJointAxis" node="0>0|3" />
        <i3dMapping id="licensePlate" node="0>0|6" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|7|0" />    
        <i3dMapping id="cutterJointNode" node="0>0|7|1" />
        <i3dMapping id="wheelFrontLeft" node="1>0|0|0" />
        <i3dMapping id="wheelFrontRight" node="1>0|0|1" />
        <i3dMapping id="componentJointDrawbar" node="1>0|1" />
        <i3dMapping id="ClaasCuttertrailer_drawbar_component3" node="2>" />
        <i3dMapping id="attacherJoint" node="2>0|0" />
        <i3dMapping id="electric" node="2>0|3|0" />
        <i3dMapping id="electric_detached" node="2>0|3|0|0" />
        <i3dMapping id="electric_connector" node="2>0|3|0|0|0" />
        <i3dMapping id="drawbarPart" node="2>0|2" />
        <i3dMapping id="drawbarSpring" node="2>0|2|0" />
        <i3dMapping id="rearLightLeft" node="0>0|2|0|10" />
        <i3dMapping id="rearLightRight" node="0>0|2|0|11" />     
        <i3dMapping id="rearLight23White" node="0>0|2|0|12" />           
    </i3dMappings>
</vehicle>
